diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-02-10 12:17:29 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-02-10 12:17:29 +0100 |
commit | 4f68a77e3f03aac0dc18caeb02b19b100f04879d (patch) | |
tree | f782ca827cc63bf89fe5f9552fe153a4ee211f17 /frontends/verilog | |
parent | 510deb3577d97cae5d22cfd52b28bb1330e8025a (diff) | |
download | yosys-4f68a77e3f03aac0dc18caeb02b19b100f04879d.tar.gz yosys-4f68a77e3f03aac0dc18caeb02b19b100f04879d.tar.bz2 yosys-4f68a77e3f03aac0dc18caeb02b19b100f04879d.zip |
Improved read_verilog support for empty behavioral statements
Diffstat (limited to 'frontends/verilog')
-rw-r--r-- | frontends/verilog/verilog_parser.y | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/frontends/verilog/verilog_parser.y b/frontends/verilog/verilog_parser.y index 621b6cc18..23cea27f1 100644 --- a/frontends/verilog/verilog_parser.y +++ b/frontends/verilog/verilog_parser.y @@ -946,7 +946,7 @@ simple_behavioral_stmt: // this production creates the obligatory if-else shift/reduce conflict behavioral_stmt: defattr | assert | wire_decl | - simple_behavioral_stmt ';' | + simple_behavioral_stmt ';' | ';' | hierarchical_id attr { AstNode *node = new AstNode(AST_TCALL); node->str = *$1; @@ -1060,10 +1060,6 @@ opt_synopsys_attr: } | /* empty */; -behavioral_stmt_opt: - behavioral_stmt | - ';' ; - behavioral_stmt_list: behavioral_stmt_list behavioral_stmt | /* empty */; @@ -1092,7 +1088,7 @@ case_item: ast_stack.back()->children.push_back(block); ast_stack.push_back(block); case_type_stack.push_back(0); - } behavioral_stmt_opt { + } behavioral_stmt { case_type_stack.pop_back(); ast_stack.pop_back(); ast_stack.pop_back(); |