You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
295 B

(* ast *)
type pattern = string
type var_id = string
type literal = Unit | Bool of bool
type const = Literal of literal | Var of var_id
type expr =
| Const of const
| Bind of pattern * expr * expr
| Abstract of pattern * expr
| Apply of expr * expr
type file = expr
type t = file