summaryrefslogtreecommitdiffhomepage
path: root/lexer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lexer.cpp')
-rw-r--r--lexer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lexer.cpp b/lexer.cpp
index 3b26c52..63330c1 100644
--- a/lexer.cpp
+++ b/lexer.cpp
@@ -256,6 +256,8 @@ Lexer::Lexer(const BNF& bnf, const std::string& Top): bnf(bnf), Top(Top), Revers
std::vector<Token> Lexer::Lex(const std::string& s)
{
+ location = {1, 0};
+
std::vector<Token> result;
std::string token;