As the next step in the construction of your compiler for C, you will use the Unix utility `yacc' to generate a LALR parser. A main program along with a definition file describing the grammar and actions is required. Additionally you main want to write other functions for the parser. You will be given a grammar (Grammar-Spec) (here) that parses ANSI C as required to meet the specifications required by `yacc'. The parser is responsible for determining syntactic constructs and recognizing syntactically correct strings in the language. In the next phase of the compiler (semantic analysis), actions will be added to the grammar, so that when syntactic constructs are recognized by the parser, some semantic action will be taken. In order to show that the parser is recognizing these constructs, the parser will write the reductions that have been made to an output file. We will treat any parse error as fatal and, after reporting the error, terminate the parsing.
Output from the parser will be lines of source code interspersed with reductions. You should cause lex to write out source lines and then have the parser write the reductions to the same file (list_file).
On the due date you are to hand in a folder with a title page that lists your team, and then an informational page on where to find your compiler's web page. The web page is to have the following: