Recently, I have been busy with studying and doing assignments from my university courses. One of the assignment I had was to write a Scanner, as a part of a compiler for the course COMP3131: Programming Languages and Compilers. Anyway we were given a few test cases for the scanner, but we didn't get any autotest-ing script, so I decided to write one, to help me practice and also to make my life a little bit easier xD.

Anyway here is the bash script I wrote to do the testing:

So we are currently making a compiler for VC, which is a subset of C (you can click here if you want to know more about it), in which the program files end with .vc and we were also given sample outputs for the samples ending with .out.

I hope this might help someone doing the course (in 18s1 or) in the future :D