Skip to content

Commit

Permalink
Merge pull request #645 from diffblue/non_port_module_item
Browse files Browse the repository at this point in the history
Verilog: non_port_module_item grammar rule
  • Loading branch information
tautschnig authored Aug 27, 2024
2 parents 5fd4feb + e0b31a6 commit e3bc203
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions src/verilog/parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -905,24 +905,15 @@ module_or_generate_item_declaration:
;

non_port_module_item:
attribute_instance_brace generate_region
{ add_attributes($2, $1); $$=$2; }
generate_region
| module_or_generate_item
| attribute_instance_brace specparam_declaration
{ add_attributes($2, $1); $$=$2; }
| attribute_instance_brace specify_block
{ add_attributes($2, $1); $$=$2; }
| program_declaration
| module_declaration
| interface_declaration
;

/*
module_or_generate_item
| attribute_instance_brace parameter_declaration
// { add_attributes($2, $1); $$=$2; }
// | attribute_instance_brace local_parameter_declaration
// { add_attributes($2, $1); $$=$2; }
;
*/

// System Verilog standard 1800-2017
// A.1.5 Configuration source text

Expand Down

0 comments on commit e3bc203

Please sign in to comment.