Added main loop of parser.

This commit is contained in:
Nathan Braswell
2013-05-23 01:35:54 -04:00
parent 14fc410e00
commit e4f83cbb67
9 changed files with 142 additions and 2 deletions

View File

@@ -27,6 +27,14 @@ void ParseRule::appendToRight(Symbol* appendee) {
rightSide.push_back(appendee);
}
Symbol* ParseRule::getLeftSide() {
return leftHandle;
}
std::vector<Symbol*> ParseRule::getRightSide() {
return rightSide;
}
bool ParseRule::advancePointer() {
if (pointerIndex < rightSide.size()) {
pointerIndex++;