summaryrefslogtreecommitdiff
path: root/src/GF/Canon/GFCC/GFCC.cf
diff options
context:
space:
mode:
authorkr_angelov <kr_angelov@gmail.com>2006-12-28 16:35:16 +0000
committerkr_angelov <kr_angelov@gmail.com>2006-12-28 16:35:16 +0000
commit48b4e3de1dd02a9956a7a051ea5c44fb24b6130a (patch)
tree292dd64ddffd9feb9f0eef12c0f72eb56a5171cf /src/GF/Canon/GFCC/GFCC.cf
parent46c8026b9d7e5f6d061b7dd340bfeb4a012b07c8 (diff)
simplify GFCC syntax
Diffstat (limited to 'src/GF/Canon/GFCC/GFCC.cf')
-rw-r--r--src/GF/Canon/GFCC/GFCC.cf11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/GF/Canon/GFCC/GFCC.cf b/src/GF/Canon/GFCC/GFCC.cf
index 65657a259..5c8020905 100644
--- a/src/GF/Canon/GFCC/GFCC.cf
+++ b/src/GF/Canon/GFCC/GFCC.cf
@@ -21,20 +21,19 @@ define trA a = Tr a [] ;
R. Term ::= "[" [Term] "]" ; -- record/table
P. Term ::= "(" Term "!" Term ")" ; -- projection/selection
S. Term ::= "(" [Term] ")" ; -- sequence with ++
-K. Term ::= Tokn ; -- token
-V. Term ::= "$" Integer ; -- argument
-C. Term ::= Integer ; -- parameter value/label
+KS. Term ::= String ; -- token
+KP. Term ::= "[" "pre" [String] "[" [Variant] "]" "]" ;
+V. Term ::= "$" Int ; -- argument
+C. Term ::= Int ; -- parameter value/label
F. Term ::= CId ; -- global constant
FV. Term ::= "[|" [Term] "|]" ; -- free variation
-W. Term ::= "(" String "+" Term ")" ; -- prefix + suffix table
+W. Term ::= "(" String "+" [String] ")" ; -- prefix + suffix table
RP. Term ::= "(" Term "@" Term ")"; -- record parameter alias
TM. Term ::= "?" ; -- lin of metavariable
L. Term ::= "(" CId "->" Term ")" ; -- lambda abstracted table
BV. Term ::= "#" CId ; -- lambda-bound variable
-KS. Tokn ::= String ;
-KP. Tokn ::= "[" "pre" [String] "[" [Variant] "]" "]" ;
Var. Variant ::= [String] "/" [String] ;