File tree Expand file tree Collapse file tree 1 file changed +16
-15
lines changed Expand file tree Collapse file tree 1 file changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -616,16 +616,13 @@ description:
616
616
| interface_declaration
617
617
| program_declaration
618
618
| package_declaration
619
+ // | type_declaration
620
+ // { PARSER.parse_tree.create_typedef(stack_expr($1 )); }
621
+ | attribute_instance_brace package_item
619
622
| attribute_instance_brace bind_directive
620
623
| config_declaration
621
- | type_declaration
622
- { PARSER.parse_tree.create_typedef(stack_expr($1 )); }
623
624
;
624
625
625
- /*
626
- | attribute_instance_brace package_item
627
- */
628
-
629
626
module_nonansi_header :
630
627
attribute_instance_brace
631
628
module_keyword
@@ -842,6 +839,19 @@ bind_directive:
842
839
// A.1.11 Package items
843
840
844
841
package_item :
842
+ package_or_generate_item_declaration
843
+ // | anonymous_program
844
+ // | package_export_declaration
845
+ // | timeunits_declaration
846
+ ;
847
+
848
+ package_or_generate_item_declaration :
849
+ net_declaration
850
+ | data_declaration
851
+ | task_declaration
852
+ | function_declaration
853
+ | local_parameter_declaration ' ;'
854
+ | parameter_declaration ' ;'
845
855
;
846
856
847
857
// System Verilog standard 1800-2017
@@ -1958,15 +1968,6 @@ generate_item_or_null:
1958
1968
1959
1969
constant_expression : expression ;
1960
1970
1961
- package_or_generate_item_declaration :
1962
- net_declaration
1963
- | data_declaration
1964
- | task_declaration
1965
- | function_declaration
1966
- | local_parameter_declaration ' ;'
1967
- | parameter_declaration ' ;'
1968
- ;
1969
-
1970
1971
// System Verilog standard 1800-2017
1971
1972
// A.5.1 UDP declaration
1972
1973
You can’t perform that action at this time.
0 commit comments