move parserContext to its own file

This change allows us to include ast_handlers.hpp just once.

Change-Id: Ib6c70d27f79422c8b90b3006cffdb6e747ca346c
diff --git a/src/parser_context.hpp b/src/parser_context.hpp
new file mode 100644
index 0000000..64b293a
--- /dev/null
+++ b/src/parser_context.hpp
@@ -0,0 +1,18 @@
+/*
+ * Copyright (C) 2018 CESNET, https://photonics.cesnet.cz/
+ * Copyright (C) 2018 FIT CVUT, https://fit.cvut.cz/
+ *
+ * Written by Václav Kubernát <kubervac@fit.cvut.cz>
+ *
+*/
+
+#include "CTree.hpp"
+struct ParserContext {
+    ParserContext(const CTree& tree);
+    const CTree& m_tree;
+    std::string m_curPath;
+    std::string m_errorMsg;
+    std::string m_tmpListName;
+    std::set<std::string> m_tmpListKeys;
+    bool m_errorHandled = false;
+};