From 2ae1fd90afe236f8815921362c5d45a201dd4476 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 15 Feb 2020 22:12:14 +0100 Subject: Tests --- lexer.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lexer.cpp') 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 Lexer::Lex(const std::string& s) { + location = {1, 0}; + std::vector result; std::string token; -- cgit v1.2.3