Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 625 Bytes

readme.md

File metadata and controls

29 lines (22 loc) · 625 Bytes

Tiger Compiler.

This is a repo for tiger compiler.

The Differences

  • Change c-language to c++ language.

Statement

Statement Struct
Stm -> Stm; Stm CompoundStm
Stm -> id := Exp AssignStm
Stm -> print(ExpList) PrintStm
Exp -> id IdExp
Exp -> num NumExp
Exp -> Exp Binop Exp OpExp
Exp -> (Stm, Exp) EseqExp
ExpList -> Exp, ExpList PairExpList
ExpList -> Exp LastExpList
Binop -> + Plus
Binop -> - Minus
Binop -> x Times
Binop -> / Div

References