top-level toy compiler - far from complete

This commit is contained in:
aarne
2007-03-27 16:32:44 +00:00
parent 273dc7120f
commit 1c1acf1b97
12 changed files with 388 additions and 54 deletions

View File

@@ -36,10 +36,11 @@ ETab. Exp1 ::= "table" "{" [Case] "}" ;
ETbv. Exp1 ::= "table" "(" Type ")" "{" [Exp] "}" ;
ECat. Exp ::= Exp "++" Exp1 ;
EAbs. Exp ::= "\\" Ident "->" Exp ;
ECst. Exp2 ::= "(" Ident "@" [Exp] ")" ;
coercions Exp 2 ;
separator Exp ";" ;
separator Exp "," ;
FExp. Assign ::= Ident "=" Exp ;