From 9ebbd3bbf8b2838ef7056e624bee214026ba4c17 Mon Sep 17 00:00:00 2001
From: Jan Travnicek <Jan.Travnicek@fit.cvut.cz>
Date: Mon, 16 Oct 2017 16:01:38 +0200
Subject: [PATCH] temporary fix automaton lexer

---
 alib2str/src/automaton/AutomatonFromStringLexer.cpp | 2 ++
 alib2str/src/registration/StringRegistration.hpp    | 6 +++---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/alib2str/src/automaton/AutomatonFromStringLexer.cpp b/alib2str/src/automaton/AutomatonFromStringLexer.cpp
index 8e1401147e..c8f70f35a6 100644
--- a/alib2str/src/automaton/AutomatonFromStringLexer.cpp
+++ b/alib2str/src/automaton/AutomatonFromStringLexer.cpp
@@ -78,6 +78,7 @@ L0:
 	} else {
 		in.clear();
 		putback(in, token);
+		token.raw = "";
 		token.type = TokenType::ERROR;
 		return token;
 	}
@@ -95,6 +96,7 @@ L1:
 		in.clear ( );
 		in.unget ( );
 		putback(in, token);
+		token.raw = "";
 		token.type = TokenType::ERROR;
 		return token;
 	}
diff --git a/alib2str/src/registration/StringRegistration.hpp b/alib2str/src/registration/StringRegistration.hpp
index 2e472c9790..c8d405a728 100644
--- a/alib2str/src/registration/StringRegistration.hpp
+++ b/alib2str/src/registration/StringRegistration.hpp
@@ -1,5 +1,5 @@
-#ifndef _TYPE_REGISTRATION_HPP_
-#define _TYPE_REGISTRATION_HPP_
+#ifndef _STRING_REGISTRATION_HPP_
+#define _STRING_REGISTRATION_HPP_
 
 #include <core/xmlApi.hpp>
 
@@ -55,4 +55,4 @@ public:
 
 } /* namespace registration */
 
-#endif // _TYPE_REGISTRATION_HPP_
+#endif // _STRING_REGISTRATION_HPP_
-- 
GitLab