Added support for the minus operator.
This commit is contained in:
parent
fe4533c7ae
commit
a36de2bde1
7 changed files with 48 additions and 12 deletions
|
|
@ -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 ;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue