File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed
regression/verilog/nettype Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 1- KNOWNBUG
1+ CORE
22nettype1.sv
33
44^EXIT=0$
55^SIGNAL=0$
66--
77^warning: ignoring
88--
9- nettype is not implemented.
Original file line number Diff line number Diff line change @@ -1395,6 +1395,7 @@ data_declaration:
13951395 swapop ($$, $4 ); }
13961396 | type_declaration
13971397 | package_import_declaration
1398+ | net_type_declaration
13981399 ;
13991400
14001401const_opt:
@@ -1464,6 +1465,21 @@ type_declaration:
14641465 }
14651466 ;
14661467
1468+ net_type_declaration:
1469+ TOK_NETTYPE
1470+ { init ($$, ID_decl);
1471+ stack_expr ($$).set (ID_class, ID_typedef);
1472+ }
1473+ data_type any_identifier ' ;'
1474+ { $$ = $2 ;
1475+ // add to the scope as a type name
1476+ PARSER.scopes .add_name (stack_expr ($4 ).get (ID_base_name), " " , verilog_scopet::TYPEDEF);
1477+ addswap ($$, ID_type, $3 );
1478+ stack_expr ($4 ).id (ID_declarator);
1479+ mto ($$, $4 );
1480+ }
1481+ ;
1482+
14671483vectored_scalared_opt:
14681484 /* Optional */
14691485 { make_nil ($$); }
@@ -4624,6 +4640,8 @@ hierarchical_identifier:
46244640
46254641hierarchical_variable_identifier: hierarchical_identifier;
46264642
4643+ net_type_identifier: TOK_TYPE_IDENTIFIER;
4644+
46274645identifier: non_type_identifier;
46284646
46294647property_identifier: TOK_NON_TYPE_IDENTIFIER;
You can’t perform that action at this time.
0 commit comments