forked from GitHub/gf-core
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