Mercurial > urweb
diff src/elab.sml @ 156:34ccd7d2bea8
Start of datatype support
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 24 Jul 2008 15:02:03 -0400 |
parents | 7420fa18d657 |
children | 06a98129b23f |
line wrap: on
line diff
--- a/src/elab.sml Thu Jul 24 11:32:01 2008 -0400 +++ b/src/elab.sml Thu Jul 24 15:02:03 2008 -0400 @@ -93,6 +93,8 @@ datatype sgn_item' = SgiConAbs of string * int * kind | SgiCon of string * int * kind * con + | SgiDatatype of string * int * (string * int * con option) list + | SgiDatatypeImp of string * int * int * string list * string | SgiVal of string * int * con | SgiStr of string * int * sgn | SgiSgn of string * int * sgn @@ -111,6 +113,8 @@ datatype decl' = DCon of string * int * kind * con + | DDatatype of string * int * (string * int * con option) list + | DDatatypeImp of string * int * int * string list * string | DVal of string * int * con * exp | DValRec of (string * int * con * exp) list | DSgn of string * int * sgn