Parse macro call attached semicolon as empty expression
authorLukasz Dalek <ldalek@antmicro.com>
Mon, 1 Jun 2020 13:25:24 +0000 (15:25 +0200)
committerKamil Rakoczy <krakoczy@antmicro.com>
Fri, 26 Jun 2020 13:38:20 +0000 (15:38 +0200)
Signed-off-by: Lukasz Dalek <ldalek@antmicro.com>
frontends/verilog/verilog_parser.y

index 18745e38eece4d90c33bb51df9cec62079c85386..35e34a124f0dd95551bbb52d493de60d5b80e0bd 100644 (file)
@@ -745,7 +745,7 @@ module_body:
 module_body_stmt:
        task_func_decl | specify_block | param_decl | localparam_decl | typedef_decl | defparam_decl | specparam_declaration | wire_decl | assign_stmt | cell_stmt |
        enum_decl | struct_decl |
-       always_stmt | TOK_GENERATE module_gen_body TOK_ENDGENERATE | defattr | assert_property | checker_decl | ignored_specify_block;
+       always_stmt | TOK_GENERATE module_gen_body TOK_ENDGENERATE | defattr | assert_property | checker_decl | ignored_specify_block | /* empty statement */ ';';
 
 checker_decl:
        TOK_CHECKER TOK_ID ';' {