added '\' for 'λ' and '->' for '→'
This commit is contained in:
parent
0c347709f0
commit
c58327ed98
2
hm.cf
2
hm.cf
|
@ -19,6 +19,7 @@ Decl. Decl ::= Id ":" TypeSig ;
|
|||
-- todo custom [Decl]
|
||||
|
||||
TypeFun. TypeSig ::= TypeSig1 "→" TypeSig ;
|
||||
TypeFun. TypeSig ::= TypeSig1 "->" TypeSig ;
|
||||
TypeApp. TypeSig1 ::= Id [TypeSig2] ;
|
||||
TypeVar. TypeSig2 ::= Id ;
|
||||
coercions TypeSig 2;
|
||||
|
@ -27,6 +28,7 @@ separator nonempty TypeSig2 "" ;
|
|||
|
||||
ExpLet. Exp ::= "let" "{" [Assign] "}" "in" Exp1 ;
|
||||
ExpAbs. Exp1 ::= "λ" [Id] "." Exp1 ;
|
||||
ExpAbs. Exp1 ::= "\\" [Id] "." Exp1 ;
|
||||
ExpApp. Exp1 ::= Exp2 [Exp2] ;
|
||||
ExpVar. Exp2 ::= Id ;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user