Fix a minor bug in the lexer (it would not match the last character of the input) and add Lexer tests.

This commit is contained in:
Jason Orendorff
2013-10-26 23:05:25 -07:00
parent ebe6b3520a
commit 7859b29725
3 changed files with 50 additions and 3 deletions

View File

@@ -16,9 +16,10 @@ class Lexer {
void addRegEx(std::string regExString);
void setInput(std::string inputString);
Symbol next();
static void test();
private:
std::vector<RegEx*> regExs;
std::string input;
int currentPosition;
};
#endif
#endif