From 75d228629a267da1be6c26a6fb13a14f3da0f7c2 Mon Sep 17 00:00:00 2001 From: bringert Date: Mon, 21 Mar 2005 13:27:04 +0000 Subject: Build cfgm files using the nondeterministic conversion. Allow coercions in cfgm rule functions and remove the name. --- src/GF/CFGM/CFG.cf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/GF/CFGM/CFG.cf') 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 - ["'\\"]) | ('\\' ["'\\"]))* '\'' ; -- cgit v1.2.3