COMPILER DESIGN

Project 2

Due on March 17th,1999.

  1. Construct abstract syntax tree for Java Programs. Please look at the Sample Code to get some ideas. From comp.compilers newsgroup, we see
    From this page:
    http://www.antlr.org/buybook.html
    
    Click on the sample chapter. This chapter describes many practical aspects of
    parser and tree design and how that influenced the design of PCCTS (and later
    ANTLR 2).  The sections on SORCERER are the ones specifically about tree
    design and transformation. By Monty
    
  2. Study the java assembler in the Java Assembler and write a two paragraphs report.