Determine which parse tree nodes have elements


Assignment Task: The Espresso Compiler Project

Familiarize yourself with the many methods in the file Type.java; many of these methods will do a lot of the checking for you.

Determine which parse tree nodes have elements that need to be type checked. Each of these nodes will have a corresponding visit method in the type checker visitor.

Determine, for each of these nodes, what needs to be type checked and what, if any, type the node represents (most of the nodes that return a type are expressions of some sort. For example, an if-statement does not return a type as it is a statement, but it has elements like the boolean expression that must be type checked. This boolean expression does have a type as it is an expression, and its type can be obtained by visiting it.)

Determine which parse tree nodes represent types and implement a visit method for them to simply return their type when visited.

Read and understand the section about how to determine which method to call and implement the findMethod() method.

Use the build.xml file and the ant command to build your compiler.

Use the espressoc script to test your compiler.

Compare your compiler against my reference implementation (if you want.)

All the tutors of our Compiler Construction Assignment Help service assist you in the most precise and professional manner, in order to make your academic future bright!

Tags: Compiler Construction Assignment Help, Compiler Construction Homework Help, Compiler Construction Coursework, Compiler Construction Solved Assignments

Attachment:- Compiler Construction.rar

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Determine which parse tree nodes have elements
Reference No:- TGS03049093

Expected delivery within 24 Hours