added '\' for 'λ' and '->' for '→'

master
Rachel Lambda Samuelsson 2022-01-28 22:56:03 +01:00
parent 0c347709f0
commit c58327ed98
1 changed files with 3 additions and 1 deletions

4
hm.cf
View File

@ -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;
@ -26,7 +27,8 @@ coercions TypeSig 2;
separator nonempty TypeSig2 "" ;
ExpLet. Exp ::= "let" "{" [Assign] "}" "in" Exp1 ;
ExpAbs. Exp1 ::= "λ" [Id] "." Exp1 ;
ExpAbs. Exp1 ::= "λ" [Id] "." Exp1 ;
ExpAbs. Exp1 ::= "\\" [Id] "." Exp1 ;
ExpApp. Exp1 ::= Exp2 [Exp2] ;
ExpVar. Exp2 ::= Id ;