NTU Compiler Technology Project 4
tags: NTU_CT NTU Compiler Techonology of Programming Language Code Generation
How to run?
First, put your testing file and main.S to the folder same as parser file
1 | |
Or, you can put the run.sh and main.S in the same directory and run
1 | |
Note that you must change your test file’s main() to `MAIN()`
Implementation
Just show the mainly implementation concept
Assignment statements
1 | |
Arithmetic expressions
1 | |
Control statements: while, if-then-else
1 | |
Parameterless procedure calls
1 | |
Read and Write I/O calls
1 | |
Experience result
- assign.c

- control.c

- expr.c

- func.c

- hello.c

- io.c
