Question: I. The front end Your first task is to implement a compiler front end: 1. Define suitable data types/classes for representing abstract syntax. 2. Implement
I. The front end Your first task is to implement a compiler front end: 1. Define suitable data types/classes for representing abstract syntax. 2. Implement a lexer and parser that builds abstract syntax from strings. 3. Implement a type checker that checks that programs are type-correct. 4. Implement a main program that calls lexer, parser and type checker, and reports errors
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
