ASSIGNMENT: Lexcial anaylzer
Using the template for the 1st assignment, you should write the lexical analyzer for the PREV'22 programming language.
If the source file contains lexicaly correct source, the lexical
analyzer must be able to produce an .xml file containing a list of
recognized symbols (the accompanying .xsl file can be found in the
template); otherwise, the lexical analyzer should produce a sensible
error message and terminate as soon as the first mistake in the source
file is discovered.
You can find the specification of the PREV'22 programming language on the main page of this course.
You
should upload your solution as a zip file named xxxxxxxx-01.zip
where xxxxxxxx stands for you student identification number. The
contents of the uploaded zip file must have exactly the same directory
structure as the template. The uploaded zip file must contain complete
source distribution, but without antlr and generated files.