Parsing has never been this much fun
[hcoop/domtool2.git] / src / ast.sml
index 3fdc22f..6ee4b7b 100644 (file)
@@ -61,11 +61,15 @@ datatype exp' =
 
        | 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 *)
+       | EEnv of string
+       (* Get an environment variable *)
        | ESeq of exp list
        (* Monad sequencer; execute a number of commands in order *)
        | ELocal of exp