Added support for subtraction
This commit is contained in:
parent
f8d320bb6d
commit
026949ae7e
25 changed files with 864 additions and 4511 deletions
|
|
@ -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 ;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue