Added first go at creating stateSets. This is a commit to save work, as it still segfaults.:
This commit is contained in:
@@ -15,6 +15,10 @@ ParseRule::~ParseRule() {
|
||||
|
||||
}
|
||||
|
||||
const bool ParseRule::operator==(const ParseRule &other) {
|
||||
return( leftHandle == other.leftHandle && rightSide == other.rightSide && pointerIndex == other.pointerIndex );
|
||||
}
|
||||
|
||||
ParseRule* ParseRule::clone() {
|
||||
return( new ParseRule(leftHandle, pointerIndex, rightSide) );
|
||||
}
|
||||
@@ -35,6 +39,10 @@ std::vector<Symbol*> ParseRule::getRightSide() {
|
||||
return rightSide;
|
||||
}
|
||||
|
||||
int ParseRule::getIndex() {
|
||||
return pointerIndex;
|
||||
}
|
||||
|
||||
bool ParseRule::advancePointer() {
|
||||
if (pointerIndex < rightSide.size()) {
|
||||
pointerIndex++;
|
||||
|
||||
Reference in New Issue
Block a user