HCoop
/
hcoop
/
domtool2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Parsing has never been this much fun
[hcoop/domtool2.git]
/
src
/
ast.sml
diff --git
a/src/ast.sml
b/src/ast.sml
index
3fdc22f
..
6ee4b7b
100644
(file)
--- a/
src/ast.sml
+++ b/
src/ast.sml
@@
-61,11
+61,15
@@
datatype exp' =
| ELam of string * typ * exp
(* Function abstraction *)
| ELam of string * typ * exp
(* Function abstraction *)
+ | EVar of string
+ (* Variable bound by a function *)
| EApp of exp * exp
(* Function application *)
| ESet of string * exp
(* Set an environment variable *)
| EApp of exp * exp
(* Function application *)
| ESet of string * exp
(* Set an environment variable *)
+ | EEnv of string
+ (* Get an environment variable *)
| ESeq of exp list
(* Monad sequencer; execute a number of commands in order *)
| ELocal of exp
| ESeq of exp list
(* Monad sequencer; execute a number of commands in order *)
| ELocal of exp