Add ls
Change-Id: I86f799ff9577940c7df8e01cda6c6b7867de8e7e
diff --git a/src/interpreter.cpp b/src/interpreter.cpp
index 19a163b..f71c12f 100644
--- a/src/interpreter.cpp
+++ b/src/interpreter.cpp
@@ -45,6 +45,14 @@
std::cout << "Presence container " << cont.m_name << " deleted." << std::endl;
}
+void Interpreter::operator()(const ls_& ls) const
+{
+ std::cout << "Possible nodes:" << std::endl;
+
+ for (const auto& it : m_parser.availableNodes(ls.m_path))
+ std::cout << it << std::endl;
+}
+
Interpreter::Interpreter(Parser& parser, Schema&)
: m_parser(parser)
{