Perens now work fully! The RegEx part of Kraken should now be fully legitimate. The only problem is not gracefully letting the user know about faulty input, but that goes for all of Kraken.

This commit is contained in:
Nathan Braswell
2013-07-07 02:13:05 -04:00
parent 502929963c
commit 4c2fd967f0
4 changed files with 190 additions and 12 deletions

View File

@@ -18,8 +18,16 @@ class RegExState {
void addNext(RegExState* nextState);
bool characterIs(char inCharacter);
std::vector<RegExState*>* advance(char advanceCharacter);
std::vector<RegExState*>* getNextStates();
RegExState* getInner();
bool isGoal();
std::string toString();
std::string toString(RegExState* avoid);
std::string toString(std::vector<RegExState*>* avoid);
char getCharacter();
private:
std::vector<RegExState*> nextStates;