Previous    Next

PROGRAM ABSTRACT SYNTAX

Add semantic actions to your parser to produce abstract syntax for the MiniJava language. Syntax-tree classes are available in $MINIJAVA/chap4, together with a PrettyPrintVisitor. If you use JavaCC, you can use JTB to generate the needed code automatically. Similarly, with SableCC, the needed code can be generated automatically.


JaVaScreenshot Previous    Next
Comments