remove old unused grammar rules

This commit is contained in:
Zachary Snow 2019-09-11 18:23:48 +02:00
parent f8a2bcbea0
commit a0068f60f2
1 changed files with 0 additions and 12 deletions

View File

@ -839,18 +839,6 @@ ParamBinding :: { ParamBinding }
| "." Identifier "(" ")" { ($2, Right Nil) }
| TypeOrExpr { ("", $1) }
Bindings :: { [(Identifier, Maybe Expr)] }
: {- empty -} { [] }
| BindingsNonEmpty { $1 }
BindingsNonEmpty :: { [(Identifier, Maybe Expr)] }
: Binding { [$1] }
| Binding "," BindingsNonEmpty { $1 : $3}
Binding :: { (Identifier, Maybe Expr) }
: "." Identifier "(" opt(Expr) ")" { ($2, $4) }
| "." Identifier { ($2, Just $ Ident $2) }
| Expr { ("", Just $1) }
| ".*" { ("*", Nothing) }
Stmts :: { [Stmt] }
: {- empty -} { [] }
| Stmts Stmt { $1 ++ [$2] }