Added support for the minus operator.

This commit is contained in:
Samuel Hammersberg 2023-02-20 14:52:11 +01:00
parent fe4533c7ae
commit a36de2bde1
7 changed files with 48 additions and 12 deletions

View file

@ -6,6 +6,7 @@ EAnn. Exp3 ::= "(" Exp ":" Type ")";
ELet. Exp3 ::= "let" Bind "in" Exp;
EApp. Exp2 ::= Exp2 Exp3;
EAdd. Exp1 ::= Exp1 "+" Exp2;
ESub. Exp1 ::= Exp1 "-" Exp2;
EAbs. Exp ::= "\\" Ident ":" Type "." Exp;
ECase. Exp ::= "case" Exp "of" "{" [CaseMatch] "}" ":" Type;
CaseMatch. CaseMatch ::= Case "=>" Exp ;