allow moving up a node with cd
Change-Id: Id1419fddda4aa2d2c16b5775a43c8df58db98c73
diff --git a/src/ast.hpp b/src/ast.hpp
index 8e71476..0c257d0 100644
--- a/src/ast.hpp
+++ b/src/ast.hpp
@@ -37,6 +37,14 @@
struct parser_context_tag;
+
+struct nodeup_ {
+ bool operator==(const nodeup_&) const
+ {
+ return true;
+ }
+};
+
struct container_ {
container_() = default;
container_(const std::string& name);
@@ -64,7 +72,7 @@
struct path_ {
bool operator==(const path_& b) const;
- std::vector<boost::variant<container_, listElement_>> m_nodes;
+ std::vector<boost::variant<container_, listElement_, nodeup_>> m_nodes;
};