mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
toy target language
This commit is contained in:
@@ -62,3 +62,4 @@ separator AssPatt ";" ;
|
||||
|
||||
comment "--" ;
|
||||
comment "{-" "-}" ;
|
||||
|
||||
|
||||
16
devel/compiler/Tgt.cf
Normal file
16
devel/compiler/Tgt.cf
Normal 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 "," ;
|
||||
Reference in New Issue
Block a user