diff options
Diffstat (limited to 'src/GF/CFGM/CFG.cf')
| -rw-r--r-- | src/GF/CFGM/CFG.cf | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/GF/CFGM/CFG.cf b/src/GF/CFGM/CFG.cf index f6efce7e5..af55d6401 100644 --- a/src/GF/CFGM/CFG.cf +++ b/src/GF/CFGM/CFG.cf @@ -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 - ["'\\"]) | ('\\' ["'\\"]))* '\'' ; |
