Fixed lots of bugs, added much more sane and efficient ParseAction table instead of recalculating every time. Fixed lots of bugs and inefficencies. Some temporary hacks in the table, mostly having to do with not having an EOF Symbol yet.
This commit is contained in:
@@ -42,6 +42,12 @@ std::vector<ParseRule*>* State::getTotal() {
|
||||
}
|
||||
return(&total);
|
||||
}
|
||||
std::vector<ParseRule*>* State::getBasis() {
|
||||
return &basis;
|
||||
}
|
||||
std::vector<ParseRule*>* State::getRemaining() {
|
||||
return &remaining;
|
||||
}
|
||||
|
||||
bool State::containsRule(ParseRule* rule) {
|
||||
for (std::vector<ParseRule*>::size_type i = 0; i < basis.size(); i++) {
|
||||
@@ -55,12 +61,6 @@ bool State::containsRule(ParseRule* rule) {
|
||||
return false;
|
||||
}
|
||||
|
||||
std::string State::intToString(int theInt) {
|
||||
std::stringstream converter;
|
||||
converter << theInt;
|
||||
return converter.str();
|
||||
}
|
||||
|
||||
std::string State::toString() {
|
||||
std::string concat = "";
|
||||
concat += "State " + intToString(number) + ":\n";
|
||||
|
||||
Reference in New Issue
Block a user