simplify GFCC syntax

This commit is contained in:
kr_angelov
2006-12-28 16:35:16 +00:00
parent 61ae1920b3
commit c70fa0831e
6 changed files with 66 additions and 78 deletions
+5 -6
View File
@@ -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] ;