Skip to content

liadadash/Compiler-AST-IntermediateCode

Repository files navigation

Compiler - AST & Intermediate code

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