Handle ambiguities between extra and non-extra tokens using normal GLR splitting
This commit is contained in:
parent
d31934ac77
commit
b76574e01c
8 changed files with 63 additions and 100 deletions
|
|
@ -340,9 +340,7 @@ class CCodeGenerator {
|
|||
}
|
||||
break;
|
||||
case ParseActionTypeReduce:
|
||||
if (action.extra) {
|
||||
add("REDUCE_EXTRA(" + symbol_id(action.symbol) + ")");
|
||||
} else if (action.fragile) {
|
||||
if (action.fragile) {
|
||||
add("REDUCE_FRAGILE(" + symbol_id(action.symbol) + ", " +
|
||||
to_string(action.consumed_symbol_count) + ")");
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue