COP 5621 - Homework 4 - MiniJava Abstract Syntax

Due Wednesday, October 27

In this assignment, we will add actions to our MiniJava parsers to build abstract syntax trees, as described on pages 98-100. Especially study the summary of the class constructors on page 99.

Now /homes/smithg/compiler/minijava/chap4 contains quite a few directories and files, but for this assignment you just need to copy your MiniJava.lex into parse/ and extend your MiniJava grammar from Homework 3 with actions to build abstract syntax trees. Study the new skeleton Grm.cup in chap4/parse/ carefully; it demonstrates techniques that you will need for synthesizing the trees.

A few remarks:


Back to