PROJECT ASSIGNMENT #5 --------------------- Due Thursday, May 5, 2005, at 5:00 P.M. 1. Integrate code generating actions into your compiler. The code generated should consist of 4 components: a) Lexical analyzer for the specified language, coded in JLex. b) Parser for the specified language, coded in CUP, with integrated semantic actions to generate syntax trees. c) Semantics interpreter for the specified language which takes the syntax trees produced by the parser and interprets them according to the semantics of the language expressed in TLG. d) Java main program which calls the Java objects produced by the interpreter to make it executable. 2. For each test program associated with a given TLG specification, interpret the test program using the interpreter generated above. Use input data which is appropriate to the test program.