Also allow "module foobar(input foo, output bar, ...);" syntax

This commit is contained in:
Clifford Wolf 2014-08-07 16:41:27 +02:00
parent 312ee00c9e
commit 2dc3333734
1 changed files with 5 additions and 3 deletions

View File

@ -247,8 +247,7 @@ single_module_para:
}; };
module_args_opt: module_args_opt:
'(' ')' | /* empty */ | '(' module_args optional_comma ')' | '(' ')' | /* empty */ | '(' module_args optional_comma ')';
'(' '.' '.' '.' ')' { do_not_require_port_stubs = true; };
module_args: module_args:
module_arg | module_args ',' module_arg; module_arg | module_args ',' module_arg;
@ -297,7 +296,10 @@ module_arg:
ast_stack.back()->children.push_back(node); ast_stack.back()->children.push_back(node);
append_attr(node, $1); append_attr(node, $1);
delete $4; delete $4;
} module_arg_opt_assignment; } module_arg_opt_assignment |
'.' '.' '.' {
do_not_require_port_stubs = true;
};
wire_type: wire_type:
{ {