From bcafef8d01413c26281e1d6767683a89c74ac449 Mon Sep 17 00:00:00 2001 From: Zachary Snow Date: Mon, 30 Mar 2020 19:27:44 -0400 Subject: [PATCH] allow empty list_of_parameter_assignments --- src/Language/SystemVerilog/Parser/Parse.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Language/SystemVerilog/Parser/Parse.y b/src/Language/SystemVerilog/Parser/Parse.y index c731960..da9f720 100644 --- a/src/Language/SystemVerilog/Parser/Parse.y +++ b/src/Language/SystemVerilog/Parser/Parse.y @@ -942,7 +942,8 @@ PortBinding :: { PortBinding } | ".*" { ("*", Nothing) } ParamBindings :: { [ParamBinding] } - : "#" "(" ParamBindingsInside ")" { $3 } + : "#" "(" ")" { [] } + | "#" "(" ParamBindingsInside ")" { $3 } ParamBindingsInside :: { [ParamBinding] } : ParamBinding { [$1] } | ParamBinding "," ParamBindingsInside { $1 : $3}