Question: Compiler Design - project C-interpreter ?Or just give me a C-compiler program in Java! Not follow the rules below is okay! I need a frame!?

Compiler Design - project C-interpreter

?Or just give me a C-compiler program in Java! Not follow the rules below is okay! I need a frame!?

In this project, the students are encouraged to build a semi-C interpreter based on the given semi-c language production rule. 1. Basic structure as an interpreter: The implemented interpreter should generate a flow graph and symbol table that reflect input source code. The flow graph contains the instructions of source code and represents the control flow of each instructions. The symbol table holds variables and their type and scope. 2. Command functions: The interpreter should provide interactive command prompt like Python or some other interpret languages. The implemented interpreter is required to include three basic commands: next command: This command executes a single or multiple line(s) of the source code. For example, next just executes current line of source code, and next 10 will execute 10 lines including current line. print command: This command prints the value contained in a variable at the moment. For example, if an integer variable a contains value 10, then print a will print 10 trace command: This command shows the history of a variable from beginning to the moment.

More details please click :

The language grammar https://www2.cs.arizona.edu/~debray/Teaching/CSc453/DOCS/cminusminusspec.html

implement in C/C++ or Java code (JAVA preferable)

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!