Question: Using Java programming language do the following: 1) Implement the front.c code for lexical analyzer in OOP. 2) Name the class as: XprCompiler 3) Write

 Using Java programming language do the following: 1) Implement the front.c

Using Java programming language do the following: 1) Implement the front.c code for lexical analyzer in OOP. 2) Name the class as: XprCompiler 3) Write a main driver file to test your class 4) The source code file for testing is uploaded on Moodle 5) The tokens should be defined as enumerated "enum" type and displayed as strings not as integer codes. 6) Add the token S to your token list as a statement delimiter and use it to display each statement block at shifted indentation level or separate the statements with a separator header (see example next slide). 7) Modify XprCompiler and extend its capability to include syntax analysis/parsing besides lexical analysis. 8) Define your own error() function to respond to its calls in the implementation. 9) Use the six source-code files on Moodle: 10) "source01.txt", "source02.txt", "source03.txt", "source04.txt", "source05txt" & "source06.txt. 11) Your program must identify all errors in each program file and identify the location of the error as the lexeme index in the program string 12) Upload your project: source and testing screenshots in a "zip file to Moodle project link. 13) Dead line: see submission link on Moodle. Using Java programming language do the following: 1) Implement the front.c code for lexical analyzer in OOP. 2) Name the class as: XprCompiler 3) Write a main driver file to test your class 4) The source code file for testing is uploaded on Moodle 5) The tokens should be defined as enumerated "enum" type and displayed as strings not as integer codes. 6) Add the token S to your token list as a statement delimiter and use it to display each statement block at shifted indentation level or separate the statements with a separator header (see example next slide). 7) Modify XprCompiler and extend its capability to include syntax analysis/parsing besides lexical analysis. 8) Define your own error() function to respond to its calls in the implementation. 9) Use the six source-code files on Moodle: 10) "source01.txt", "source02.txt", "source03.txt", "source04.txt", "source05txt" & "source06.txt. 11) Your program must identify all errors in each program file and identify the location of the error as the lexeme index in the program string 12) Upload your project: source and testing screenshots in a "zip file to Moodle project link. 13) Dead line: see submission link on Moodle

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!