diff --git a/parse.y b/parse.y index b0b12fb74..658fdaa8e 100644 --- a/parse.y +++ b/parse.y @@ -1446,6 +1446,16 @@ list_of_port_declarations */ $$ = tmp; } + | list_of_port_declarations ',' + { + yyerror(@2, "error: NULL port declarations are not " + "allowed."); + } + | list_of_port_declarations ';' + { + yyerror(@2, "error: ';' is an invalid port declaration " + "separator."); + } ; port_declaration