From ef1739dbecc61087c0a8a352da5df106abb03454 Mon Sep 17 00:00:00 2001 From: Cary R Date: Fri, 28 Dec 2007 23:47:20 -0800 Subject: [PATCH] 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. --- parse.y | 10 ++++++++++ 1 file changed, 10 insertions(+) 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