Add parser support for YANG actions
Change-Id: I9e96ae15cee3f990dfa5ec3fac433faf71348e11
diff --git a/src/ast_path.hpp b/src/ast_path.hpp
index d02be60..8a86181 100644
--- a/src/ast_path.hpp
+++ b/src/ast_path.hpp
@@ -87,9 +87,15 @@
std::string m_name;
};
+struct actionNode_ {
+ bool operator==(const actionNode_& other) const;
+
+ std::string m_name;
+};
+
struct schemaNode_ {
boost::optional<module_> m_prefix;
- std::variant<container_, list_, nodeup_, leaf_, leafList_, rpcNode_> m_suffix;
+ std::variant<container_, list_, nodeup_, leaf_, leafList_, rpcNode_, actionNode_> m_suffix;
schemaNode_();
schemaNode_(decltype(m_suffix) node);
@@ -99,7 +105,7 @@
struct dataNode_ {
boost::optional<module_> m_prefix;
- std::variant<container_, listElement_, nodeup_, leaf_, leafListElement_, leafList_, list_, rpcNode_> m_suffix;
+ std::variant<container_, listElement_, nodeup_, leaf_, leafListElement_, leafList_, list_, rpcNode_, actionNode_> m_suffix;
dataNode_();
dataNode_(decltype(m_suffix) node);