ASSIGNMENT: Lexical analysis
Using the template for the first assignment, you should write a lexical analyzer for the Prev'25 programming language. If the source file is lexically correct, the lexical analyzer must generate 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 meaningful error message and terminate as soon as the first mistake in the source file is detected.
You should upload your solution as a ZIP file named xxxxxxxx-lexan.zip
, where xxxxxxxx
represents your student identification number. The contents of the uploaded ZIP file must follow exactly the same directory structure as the template. The uploaded ZIP file must include the complete source distribution, excluding ANTLR and generated files.