1
0
forked from GitHub/gf-core

Added | syntax for variants.

This commit is contained in:
bjorn
2008-10-03 07:35:26 +00:00
parent 6d4d6bce68
commit 4b41039a5d
6 changed files with 279 additions and 259 deletions

View File

@@ -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 ;