mirror of https://github.com/zachjs/sv2v.git
remove old unused grammar rules
This commit is contained in:
parent
f8a2bcbea0
commit
a0068f60f2
|
|
@ -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] }
|
||||
|
|
|
|||
Loading…
Reference in New Issue