Added support for subtraction

This commit is contained in:
Samuel Hammersberg 2023-02-04 13:20:46 +01:00
parent f8d320bb6d
commit 026949ae7e
25 changed files with 864 additions and 4511 deletions

View file

@ -6,6 +6,7 @@ EId. Exp3 ::= Ident ;
EInt. Exp3 ::= Integer ;
EApp. Exp2 ::= Exp2 Exp3 ;
EAdd. Exp1 ::= Exp1 "+" Exp2 ;
ESub. Exp1 ::= Exp1 "-" Exp2 ;
EAbs. Exp ::= "\\" Ident "->" Exp ;
coercions Exp 3 ;