toy target language

This commit is contained in:
aarne
2007-03-26 21:02:30 +00:00
parent 896233c4a9
commit 6ded4ba69c
2 changed files with 17 additions and 0 deletions

View File

@@ -62,3 +62,4 @@ separator AssPatt ";" ;
comment "--" ;
comment "{-" "-}" ;

16
devel/compiler/Tgt.cf Normal file
View File

@@ -0,0 +1,16 @@
--- target language
Tg. Object ::= [Fun] ;
FVal. Fun ::= Ident "=" Val ;
terminator Fun ";" ;
VRec. Val ::= "[" [Val] "]" ;
VPro. Val ::= "(" Val "." Val ")" ;
VTok. Val ::= String ;
VArg. Val ::= "$" Integer ;
VPar. Val ::= Integer ;
VCat. Val ::= "(" Val Val ")" ;
terminator Val "," ;