From a0068f60f2490d7cb0557f89c41647c815599419 Mon Sep 17 00:00:00 2001 From: Zachary Snow Date: Wed, 11 Sep 2019 18:23:48 +0200 Subject: [PATCH] remove old unused grammar rules --- src/Language/SystemVerilog/Parser/Parse.y | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/Language/SystemVerilog/Parser/Parse.y b/src/Language/SystemVerilog/Parser/Parse.y index 862d9c7..e858d62 100644 --- a/src/Language/SystemVerilog/Parser/Parse.y +++ b/src/Language/SystemVerilog/Parser/Parse.y @@ -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] }