] > Assignment 4: A Code Generator (Due: Th, May 15)

Assignment 4: A Code Generator (Due: Th, May 15)

Complete your compiler so that it will translate any given L756 program whose parsing does not use rules 21 and 23.

your compiler should use the following subroutines:

The main program should be provided with a L756 program and a data file. The program should call the compiler to translate the L756 program to a MINI-machine program and then it should use the EXECUTE subroutine of assignment #1 to execute the MINI-machine program on the given data.

Part a – should handle only production rules 1-6, 9, 13-14, 20, 22, 24-27.

Part b – should handle all the production rules except of 21 and 23.