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

@@ -19,6 +19,7 @@
int main(int argc, char* argv[]) {
if (argc == 2 && std::string(argv[1]) == "--test") {
StringReader::test();
Lexer::test();
return 0;
}