next up previous
Next: Computing symbol tables Up: Writing a MOOL compiler Previous: Writing a MOOL compiler

Parsing a MOOL program

A first step is probably to write a flex/lex program and yacc program in order to obtain a parser for a MOOL program. The only goal of this parser is to check whether an input text file is a valid MOOL program or not, that is a program which can be generated by the above grammar. Since the grammar of a true programming language like MOOL is more complicated than the little examples of a lecture, one should divide this task into subtasks.


next up previous
Next: Computing symbol tables Up: Writing a MOOL compiler Previous: Writing a MOOL compiler
Marc Moreno Maza
2004-12-01