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 committed 2013-07-07 02:13:05 -04:00
1 parent 502929963c
commit 4c2fd967f0
4 files changed
+190 -12

No files matched your search

+3
View File
@@ -6,6 +6,9 @@
#include "Symbol.h"
#include <string>
#include <utility>
#include <stack>
#include <vector>
class RegEx {
public:
+8
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;