COMPILER DESIGN


Project 2
Due on March 9th, 1998.

  1. You have to write a program that takes a java program and produces relavant document similar to that of javadoc. (Please look at the unix command javadoc to see what ii does). This part of the project will enable you to have a better understanding of the parser.

  2. Modify your Lex program and yacc programs so that when a Java program is given as an input, the output will be a syntax tree for that program. Store the identifiers in a symbol table and refer to the symbol table offsets when you address an identifier. In the next project, you have to traverse this tree to produce Virtual Machine code.



Moorthy
Thu Feb 15 10:33:10 EST 1996