summaryrefslogtreecommitdiff
path: root/frontends/verilog/parser.y
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2013-03-23 18:54:31 +0100
committerClifford Wolf <clifford@clifford.at>2013-03-23 18:54:31 +0100
commite45d1c8865d97dfd6a671bc09cdaf6f69d700f37 (patch)
treea869410bbd7d7bb4de001804563e3504de98c4a1 /frontends/verilog/parser.y
parentbee57c808acb33b893cef034856861bb20b99588 (diff)
Tiny fixes to verilog parser
Diffstat (limited to 'frontends/verilog/parser.y')
-rw-r--r--frontends/verilog/parser.y7
1 files changed, 6 insertions, 1 deletions
diff --git a/frontends/verilog/parser.y b/frontends/verilog/parser.y
index 6e0b238e..9caa236f 100644
--- a/frontends/verilog/parser.y
+++ b/frontends/verilog/parser.y
@@ -209,7 +209,12 @@ module:
};
module_para_opt:
- '#' '(' TOK_PARAMETER param_decl_list optional_comma ')' | /* empty */;
+ '#' '(' module_para_list ')' | /* empty */;
+
+module_para_list:
+ TOK_PARAMETER single_param_decl |
+ TOK_PARAMETER single_param_decl ',' module_para_list |
+ /* empty */;
module_args_opt:
'(' ')' | /* empty */ | '(' module_args optional_comma ')';