项目作者: LiadKh
项目描述 :
Compiler - AST & Intermediate Code
高级语言: C
项目地址: git://github.com/LiadKh/Compiler-AST-IntermediateCode.git
This project generates intermediate code, you can run ‘myprog.exe’ with input and see the intermediate code to your code.
Note
This code has a specific roles.
For example
- Statment code must contains ‘;’ on the end of the sentence.
- Switch case work only with int
- Code works only as three address code
- Var must declaration first and the code in { //write the code }
- FAND is !(AND)
- auto var get type with the expression
for more plase see the example folder