Added clone method and pointer location to toString in ParseRule
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user