summaryrefslogtreecommitdiffhomepage
path: root/lexer.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-02-15 22:12:14 +0100
committerRoland Reichwein <mail@reichwein.it>2020-02-15 22:12:14 +0100
commit2ae1fd90afe236f8815921362c5d45a201dd4476 (patch)
tree743ab8926dbf46612c22fb816ea4405e8d4097de /lexer.cpp
parent3f534c582464d0bcf815157aeaadf682b74ded34 (diff)
Tests
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;