From c3960f8e6a32c57baad96b96ed02978a6f61e808 Mon Sep 17 00:00:00 2001 From: steve Date: Sat, 23 Jun 2001 00:31:06 +0000 Subject: [PATCH] Support macromodule as module. --- parse.y | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/parse.y b/parse.y index 93f78a8f4..011a0b4bf 100644 --- a/parse.y +++ b/parse.y @@ -19,7 +19,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) && !defined(macintosh) -#ident "$Id: parse.y,v 1.122 2001/06/18 00:51:23 steve Exp $" +#ident "$Id: parse.y,v 1.123 2001/06/23 00:31:06 steve Exp $" #endif # include "parse_misc.h" @@ -1147,7 +1147,7 @@ assign_list ; module - : K_module IDENTIFIER list_of_ports_opt ';' + : module_start IDENTIFIER list_of_ports_opt ';' { pform_startmodule($2, $3); } module_item_list @@ -1155,7 +1155,7 @@ module { pform_endmodule($2); delete $2; } - | K_module IDENTIFIER list_of_ports_opt ';' + | module_start IDENTIFIER list_of_ports_opt ';' { pform_startmodule($2, $3); } K_endmodule @@ -1164,6 +1164,8 @@ module } ; +module_start : K_module | K_macromodule ; + module_item : net_type range_opt list_of_variables ';' { pform_makewire(@1, $2, $3, $1);