Remade lets with bind & improvements

This commit is contained in:
sebastianselander 2023-03-24 11:21:25 +01:00
parent 30a79f34af
commit 3371c3a146
3 changed files with 43 additions and 25 deletions

View file

@ -51,7 +51,7 @@ ECons. Exp4 ::= UIdent ;
ELit. Exp4 ::= Lit ;
EApp. Exp3 ::= Exp3 Exp4 ;
EAdd. Exp1 ::= Exp1 "+" Exp2 ;
ELet. Exp ::= "let" LIdent "=" Exp "in" Exp ;
ELet. Exp ::= "let" Bind "in" Exp ;
EAbs. Exp ::= "\\" LIdent "." Exp ;
ECase. Exp ::= "case" Exp "of" "{" [Inj] "}";