Inference works better now. Still work to do. Should use proper library
This commit is contained in:
parent
ad3f6b7011
commit
7619e36c60
8 changed files with 66 additions and 79 deletions
|
|
@ -14,8 +14,8 @@ EAbs. Exp ::= "\\" Ident "." Exp ;
|
|||
CInt. Const ::= Integer ;
|
||||
CStr. Const ::= String ;
|
||||
|
||||
TMono. Type ::= "Mono" Ident ;
|
||||
TPoly. Type ::= "Poly" Ident ;
|
||||
TMono. Type1 ::= "Mono" Ident ;
|
||||
TPoly. Type1 ::= "Poly" Ident ;
|
||||
TArrow. Type ::= Type1 "->" Type ;
|
||||
|
||||
-- This doesn't seem to work so we'll have to live with ugly keywords for now
|
||||
|
|
@ -30,3 +30,7 @@ coercions Exp 5 ;
|
|||
|
||||
comment "--" ;
|
||||
comment "{-" "-}" ;
|
||||
|
||||
-- Adt. Adt ::= "data" UIdent "=" [Constructor] ;
|
||||
-- Sum. Constructor ::= UIdent ;
|
||||
-- separator Constructor "|" ;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue