next up previous
Next: Symbol Tables for ALLCOT (10 Up: The Assignment Previous: The Assignment

A parser for ALLCOT (15 marks)

Using flex/lex and yacc, write a first parser for the version of ALLCOT without creation of symbol tables. Use the definition of the ALLCOT as stated in Section 3 of The ALLCOT Language document. Extending the language with lists (or arrays) is optional.

The only goal of this parser is to check whether an input text file is a valid ALLCOT program or not. Your parser should report on errors. But, error recovery is not required. So, your parser may halt the parsing after the first error is met.


next up previous
Next: Symbol Tables for ALLCOT (10 Up: The Assignment Previous: The Assignment
Marc Moreno Maza
2004-12-01