forked from GitHub/gf-core
Build cfgm files using the nondeterministic conversion. Allow coercions in cfgm rule functions and remove the name.
This commit is contained in:
@@ -8,9 +8,12 @@ separator Grammar "";
|
||||
StartCat. Flag ::= "startcat" Category;
|
||||
terminator Flag ";";
|
||||
|
||||
Rule. Rule ::= Ident ":" Name Profile "." Category "->" [Symbol];
|
||||
Rule. Rule ::= Fun ":" Profile "." Category "->" [Symbol];
|
||||
terminator Rule ";";
|
||||
|
||||
Cons. Fun ::= Ident ;
|
||||
Coerce. Fun ::= "_" ;
|
||||
|
||||
Profile. Profile ::= "[" [Ints] "]";
|
||||
|
||||
Ints. Ints ::= "[" [Integer] "]";
|
||||
@@ -25,7 +28,6 @@ TermS. Symbol ::= String;
|
||||
(:[]). [Symbol] ::= Symbol ;
|
||||
(:). [Symbol] ::= Symbol [Symbol] ;
|
||||
|
||||
Name. Name ::= SingleQuoteString ;
|
||||
Category. Category ::= SingleQuoteString ;
|
||||
|
||||
token SingleQuoteString '\'' ((char - ["'\\"]) | ('\\' ["'\\"]))* '\'' ;
|
||||
|
||||
Reference in New Issue
Block a user