Always resolve ambiguities immediately
No more ambiguity nodes. Also, when merging parse stacks, merge their successors if needed.
This commit is contained in:
parent
8c5c695f5a
commit
0b1d70db34
18 changed files with 123 additions and 86 deletions
|
|
@ -323,8 +323,6 @@ class CCodeGenerator {
|
|||
return "ts_builtin_sym_end";
|
||||
else if (symbol == rules::DOCUMENT())
|
||||
return "ts_builtin_sym_document";
|
||||
else if (symbol == rules::AMBIGUITY())
|
||||
return "ts_builtin_sym_ambiguity";
|
||||
else
|
||||
return "";
|
||||
} else {
|
||||
|
|
@ -344,8 +342,6 @@ class CCodeGenerator {
|
|||
return "END";
|
||||
else if (symbol == rules::DOCUMENT())
|
||||
return "DOCUMENT";
|
||||
else if (symbol == rules::AMBIGUITY())
|
||||
return "AMBIGUITY";
|
||||
else
|
||||
return "";
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue