RNGLR Recognizer now works for grammers without null rules.

This commit is contained in:
Nathan Braswell
2013-08-02 02:47:01 -04:00
parent 9887555dd5
commit 49d149bc1f
8 changed files with 96 additions and 1 deletions

View File

@@ -73,6 +73,10 @@ int ParseRule::getIndex() {
return pointerIndex;
}
std::vector<NodeTree<Symbol*>*>* ParseRule::nullReductions() {
//Return a vector of null reduction trees
}
bool ParseRule::advancePointer() {
if (pointerIndex < rightSide.size()) {
pointerIndex++;