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 committed 2013-10-26 23:13:15 -07:00
1 parent ebe6b3520a
commit 7859b29725
3 files changed
+50 -3

No files matched your search

+2 -1
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