Added clone method and pointer location to toString in ParseRule

This commit is contained in:
Nathan Braswell
2013-05-20 23:26:15 -04:00
parent 200cff6ab4
commit 14fc410e00
2 changed files with 27 additions and 0 deletions

View File

@@ -14,11 +14,16 @@
class ParseRule {
public:
ParseRule();
ParseRule(Symbol* leftHandle, int pointerIndex, std::vector<Symbol*> &rightSide);
~ParseRule();
ParseRule* clone();
void setLeftHandle(Symbol* leftHandle);
void appendToRight(Symbol* appendee);
bool advancePointer();
std::string toString();
std::string toDOT();