Commit a0068f60 by Zachary Snow

remove old unused grammar rules

parent f8a2bcbe
...@@ -839,18 +839,6 @@ ParamBinding :: { ParamBinding } ...@@ -839,18 +839,6 @@ ParamBinding :: { ParamBinding }
| "." Identifier "(" ")" { ($2, Right Nil) } | "." Identifier "(" ")" { ($2, Right Nil) }
| TypeOrExpr { ("", $1) } | 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] } Stmts :: { [Stmt] }
: {- empty -} { [] } : {- empty -} { [] }
| Stmts Stmt { $1 ++ [$2] } | Stmts Stmt { $1 ++ [$2] }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment