ASSIGNMENT: Syntax analysis
Using the template for the 2nd assignment, you should write the syntax analyzer for the LANG'24 programming language. If the source file contains syntactically correct program, the syntax analyzer must be able to produce an .xml file containing a derivation tree (the accompanying .xsl file can be found in the template); otherwise, the syntax analyzer should produce a sensible error message and terminate as soon as the first mistake in the source file is discovered.
(Furthermore, modify the lexical analyzer to recognize symbols true and false.)
You
should upload your solution as a zip file named xxxxxxxx-synan.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 (including the previous phases), but without antlr and
generated files.