diff options
| author | bringert <unknown> | 2005-05-17 13:04:35 +0000 |
|---|---|---|
| committer | bringert <unknown> | 2005-05-17 13:04:35 +0000 |
| commit | 8abf80dc4d4aa9c6a783f41346e44a5012649d03 (patch) | |
| tree | 6b03cbbffa6b435b57fc6f60a24f10a92ad6a3cd /src/GF/CFGM/CFG.cf | |
| parent | 31044ec728d3a9a56a660fdd32d880d13dc9ffbf (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.cf | 11 |
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; |
