diff options
| author | bjorn <bjorn@bringert.net> | 2008-10-03 07:35:26 +0000 |
|---|---|---|
| committer | bjorn <bjorn@bringert.net> | 2008-10-03 07:35:26 +0000 |
| commit | 1e8699d159dc510c300a5657e1127400030a1c10 (patch) | |
| tree | 005ec2c04d5cb6b97a6ee884c8cfd442bc3ca2d3 /src/GF/Source/GF.cf | |
| parent | b7fe4eacc90c538a7a366c5ee6cef2c285451c47 (diff) | |
Added | syntax for variants.
Diffstat (limited to 'src/GF/Source/GF.cf')
| -rw-r--r-- | src/GF/Source/GF.cf | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/GF/Source/GF.cf b/src/GF/Source/GF.cf index ef458c91a..2fe25e4d5 100644 --- a/src/GF/Source/GF.cf +++ b/src/GF/Source/GF.cf @@ -214,10 +214,11 @@ ESelect. Exp3 ::= Exp3 "!" Exp4 ; ETupTyp. Exp3 ::= Exp3 "*" Exp4 ; EExtend. Exp3 ::= Exp3 "**" Exp4 ; -EGlue. Exp1 ::= Exp2 "+" Exp1 ; +EGlue. Exp2 ::= Exp3 "+" Exp2 ; -EConcat. Exp ::= Exp1 "++" Exp ; +EConcat. Exp1 ::= Exp2 "++" Exp1 ; +EVariant. Exp ::= Exp1 "|" Exp ; EAbstr. Exp ::= "\\" [Bind] "->" Exp ; ECTable. Exp ::= "\\""\\" [Bind] "=>" Exp ; EProd. Exp ::= Decl "->" Exp ; |
