summaryrefslogtreecommitdiff
path: root/src/GF/CFGM/CFG.cf
diff options
context:
space:
mode:
authorbringert <unknown>2005-05-17 13:04:35 +0000
committerbringert <unknown>2005-05-17 13:04:35 +0000
commit8abf80dc4d4aa9c6a783f41346e44a5012649d03 (patch)
tree6b03cbbffa6b435b57fc6f60a24f10a92ad6a3cd /src/GF/CFGM/CFG.cf
parent31044ec728d3a9a56a660fdd32d880d13dc9ffbf (diff)
Changed CFGM format and printer to allow constants in profiles.
Diffstat (limited to 'src/GF/CFGM/CFG.cf')
-rw-r--r--src/GF/CFGM/CFG.cf11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/GF/CFGM/CFG.cf b/src/GF/CFGM/CFG.cf
index af55d6401..fa722f4a4 100644
--- a/src/GF/CFGM/CFG.cf
+++ b/src/GF/CFGM/CFG.cf
@@ -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;