stehau
This commit is contained in:
17
W2/calculator/AbSyn.fs
Normal file
17
W2/calculator/AbSyn.fs
Normal file
@ -0,0 +1,17 @@
|
||||
module AbSyn
|
||||
|
||||
(* These are the same types as in last week's assignment. *)
|
||||
|
||||
type VALUE = INT of int
|
||||
|
||||
type BINOP = BPLUS | BMINUS | BTIMES
|
||||
|
||||
type RANGEOP = RSUM | RPROD | RMAX | RARGMAX
|
||||
|
||||
type EXP =
|
||||
| CONSTANT of VALUE
|
||||
| VARIABLE of string
|
||||
| OPERATE of BINOP * EXP * EXP
|
||||
| LET_IN of string * EXP * EXP
|
||||
| OVER of RANGEOP * string * EXP * EXP * EXP
|
||||
|
Reference in New Issue
Block a user