https://cs.nju.edu.cn/changxu/2_compiler/index.html
This is a lab using C to implement a simplified compiler which includes lexical analysis, syntax analysis, semantic analysis, intermediate code generation, intermediate code optimization, target code generation, target code optimization.
And as a result, this program could transfer our c codes to mips codes.
-
Lexial Analysis and Syntax Analysis
-
Semantic Analysis
-
Intermediate Code Generation and Optimization
-
Target Code Generation and Optimization
make
./parser path_to_test path_to_output