Pattern matching in lambda added

This commit is contained in:
sebastianselander 2023-05-05 16:58:11 +02:00
parent 322286d898
commit dead9eb75a
2 changed files with 3 additions and 1 deletions

View file

@ -65,7 +65,8 @@ internal EVar. Exp4 ::= LIdent;
EApp. Exp3 ::= Exp3 Exp4;
EAdd. Exp2 ::= Exp2 "+" Exp3;
ELet. Exp1 ::= "let" Bind "in" Exp1;
EAbs. Exp1 ::= "\\" LIdent "." Exp1;
EAbsS. Exp1 ::= "\\" Pattern "." Exp1;
internal EAbs. Exp1 ::= "\\" LIdent "." Exp1;
ECase. Exp1 ::= "case" Exp "of" "{" [Branch] "}";
EAnn. Exp ::= Exp1 ":" Type;