Add better error reporting for port declarations.
Add an error message for NULL port declarations and for a ';' that could be left over from building a port declaration from an old style declaration.
This commit is contained in:
parent
fea1febf54
commit
ef1739dbec
10
parse.y
10
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue