mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-20 00:22:51 -06:00
top-level toy compiler - far from complete
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
Tg. Object ::= [Fun] ;
|
||||
|
||||
FVal. Fun ::= Ident "=" Val ;
|
||||
FVal. Fun ::= Id "=" Val ;
|
||||
|
||||
terminator Fun ";" ;
|
||||
|
||||
@@ -14,3 +14,5 @@ VPar. Val ::= Integer ;
|
||||
VCat. Val ::= "(" Val Val ")" ;
|
||||
|
||||
terminator Val "," ;
|
||||
|
||||
token Id (letter | '_') (letter | digit | '_' | '\'')* ;
|
||||
|
||||
Reference in New Issue
Block a user