Skip to content

Commit

Permalink
Some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
perezzini committed Oct 7, 2017
1 parent 9758dd8 commit 874c472
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tigertree.sml
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
structure tigertree =
struct
(* Computation of some value (possibly with side effects) *)
datatype exp = CONST of int
| NAME of tigertemp.label
| TEMP of tigertemp.temp
| BINOP of binop*exp*exp
| MEM of exp
| CALL of exp*exp list
| ESEQ of stm*exp

(* Perform side effects and control flow *)
and stm = MOVE of exp*exp
| EXP of exp
| JUMP of exp*tigertemp.label list
| CJUMP of relop*exp*exp*tigertemp.label*tigertemp.label
| SEQ of stm*stm
| LABEL of tigertemp.label

and binop = PLUS | MINUS | MUL | DIV | AND | OR
| LSHIFT | RSHIFT | ARSHIFT | XOR
and relop = EQ | NE | LT | GT | LE | GE | ULT | ULE
Expand Down

0 comments on commit 874c472

Please sign in to comment.