summaryrefslogtreecommitdiff
path: root/devel/compiler/Tgt.cf
diff options
context:
space:
mode:
authoraarne <aarne@cs.chalmers.se>2007-03-26 21:02:30 +0000
committeraarne <aarne@cs.chalmers.se>2007-03-26 21:02:30 +0000
commitb36f70e6fdf942a31c5e0ddae3018cbef8964a36 (patch)
treed09de1cbda23ff18369ee368a2cf3fda53566bb6 /devel/compiler/Tgt.cf
parent5abf240a988bbb2670301c4fd875cb000fad0540 (diff)
toy target language
Diffstat (limited to 'devel/compiler/Tgt.cf')
-rw-r--r--devel/compiler/Tgt.cf16
1 files changed, 16 insertions, 0 deletions
diff --git a/devel/compiler/Tgt.cf b/devel/compiler/Tgt.cf
new file mode 100644
index 000000000..a61c0bf74
--- /dev/null
+++ b/devel/compiler/Tgt.cf
@@ -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 "," ;