mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-04 16:52:50 -06:00
Changed CFGM format and printer to allow constants in profiles.
This commit is contained in:
@@ -8,16 +8,19 @@ separator Grammar "";
|
||||
StartCat. Flag ::= "startcat" Category;
|
||||
terminator Flag ";";
|
||||
|
||||
Rule. Rule ::= Fun ":" Profile "." Category "->" [Symbol];
|
||||
Rule. Rule ::= Fun ":" Profiles "." Category "->" [Symbol];
|
||||
terminator Rule ";";
|
||||
|
||||
Cons. Fun ::= Ident ;
|
||||
Coerce. Fun ::= "_" ;
|
||||
|
||||
Profile. Profile ::= "[" [Ints] "]";
|
||||
Profiles. Profiles ::= "[" [Profile] "]";
|
||||
|
||||
separator Profile ",";
|
||||
|
||||
UnifyProfile. Profile ::= "[" [Integer] "]";
|
||||
ConstProfile. Profile ::= Ident ;
|
||||
|
||||
Ints. Ints ::= "[" [Integer] "]";
|
||||
separator Ints ",";
|
||||
separator Integer ",";
|
||||
|
||||
CatS. Symbol ::= Category;
|
||||
|
||||
Reference in New Issue
Block a user