CE305 Languages and Compilers Assignment - Small Compiler,

Post New Homework

Languages and Compilers Assignment - Small Compiler

The purpose of this Assignment is to build a small compiler while making use of the while language. Firstly these are the instructions and requirements regarding this assignment:

1. ANTLR (parser generator) with Java on IntelliJ must be used. This is the most important thing.

2. 4 basic notions should be included in the program.

3. 3 control flow structures should be included in the program.

4. The target language is Python. The program should be able to generate the python code and the python code should run correctly and give the correct result.

5. Additional features should be included which consist of a. Abstract Syntax Tree b. Error handling c. Type checking d. Local variables e. Floats f. Advanced functions

6. The program code should have modularity.

Secondly, the assignment as a whole should consist of:

1. Program code files with internal code comments made inside all the code.

2. The specification of the basic language.

3. Full documentation of the work which will include documentation of the code. Code documentation will refer to description of the code. This is separate from the code comments.

4. Clear Instructions on how to run the code and how to perform tests with the code.

Thirdly, the basic notions, control flow structures and additional features to be included are all described in the Assignment Question itself which attached as an attachment document.

Wrote these instructions just to make things very clear and to explain precisely what should be done in the assignment. These requirements refers to how the files should be arranged:

1. Program code files should be arranged in one folder.

2. Specification should be written and saved in a Microsoft Word Document.

3. Documentation of work and code documentation should be written and saved in another Microsoft Word document.

4. Instructions on how to run the code and perform tests should be written and saved in a ReadMe text file.

Attachment:- Assignment Files.rar

Post New Homework
Captcha

Looking tutor’s service for getting help in UK studies or college assignments? Order Now