Parser assignment

  • Description
  • Grammar definition
  • Test programs
  • Description

    Write the parser, the second phase of your compiler.  The parser should use your previous scanner (or modify the ones provided) to read all tokens of an input program and check whether the program is grammatically correct.  The specific requirements are:

    Test programs

    As in the Scanner project, a set of test programs can be downloaded from here.