Skip to content

Commit

Permalink
read_rtlil: forbid assigns after switches in case rules
Browse files Browse the repository at this point in the history
  • Loading branch information
georgerennie committed Nov 21, 2024
1 parent 4b3c03d commit 0f041bb
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions frontends/rtlil/rtlil_parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,15 @@ compare_list:
/* empty */;

case_body:
case_body attr_stmt |
case_body switch_stmt |
case_body assign_stmt |
assign_list switch_list;

assign_list:
assign_list assign_stmt |
/* empty */;

switch_list:
switch_list attr_stmt |
switch_list switch_stmt |
/* empty */;

assign_stmt:
Expand Down

0 comments on commit 0f041bb

Please sign in to comment.