mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
Merge branch 'fix_shift_reduce_conflict' of https://github.com/udif/yosys
This commit is contained in:
commit
983479f395
|
@ -142,7 +142,9 @@ static void free_attr(std::map<std::string, AstNode*> *al)
|
||||||
%define parse.error verbose
|
%define parse.error verbose
|
||||||
%define parse.lac full
|
%define parse.lac full
|
||||||
|
|
||||||
%expect 2
|
%nonassoc FAKE_THEN
|
||||||
|
%nonassoc TOK_ELSE
|
||||||
|
|
||||||
%debug
|
%debug
|
||||||
|
|
||||||
%%
|
%%
|
||||||
|
@ -1261,7 +1263,7 @@ optional_else:
|
||||||
ast_stack.back()->children.push_back(cond);
|
ast_stack.back()->children.push_back(cond);
|
||||||
ast_stack.push_back(block);
|
ast_stack.push_back(block);
|
||||||
} behavioral_stmt |
|
} behavioral_stmt |
|
||||||
/* empty */;
|
/* empty */ %prec FAKE_THEN;
|
||||||
|
|
||||||
case_body:
|
case_body:
|
||||||
case_body case_item |
|
case_body case_item |
|
||||||
|
@ -1432,7 +1434,7 @@ gen_stmt_or_null:
|
||||||
gen_stmt_block | ';';
|
gen_stmt_block | ';';
|
||||||
|
|
||||||
opt_gen_else:
|
opt_gen_else:
|
||||||
TOK_ELSE gen_stmt_or_null | /* empty */;
|
TOK_ELSE gen_stmt_or_null | /* empty */ %prec FAKE_THEN;
|
||||||
|
|
||||||
expr:
|
expr:
|
||||||
basic_expr {
|
basic_expr {
|
||||||
|
|
Loading…
Reference in a new issue