Store shift states for non-terminals directly in the main parse table
This commit is contained in:
parent
8d9c261e3a
commit
fad7294ba4
20 changed files with 204 additions and 195 deletions
|
|
@ -37,9 +37,9 @@ string Symbol::to_string() const {
|
|||
}
|
||||
|
||||
bool Symbol::operator<(const Symbol &other) const {
|
||||
if (!is_token && other.is_token)
|
||||
return true;
|
||||
if (is_token && !other.is_token)
|
||||
return true;
|
||||
if (!is_token && other.is_token)
|
||||
return false;
|
||||
return (index < other.index);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue