blob: 66fcfb312eaa1c2dcdfd7eec4212f4818fe0561a [file] [log] [blame]
Václav Kubernát0a2a2e82018-05-11 13:59:12 +02001/*
2 * Copyright (C) 2018 CESNET, https://photonics.cesnet.cz/
3 * Copyright (C) 2018 FIT CVUT, https://fit.cvut.cz/
4 *
5 * Written by Václav Kubernát <kubervac@fit.cvut.cz>
6 *
7*/
8
9#pragma once
10
Václav Kubernát509ce652019-05-29 19:46:44 +020011#include <boost/spirit/home/x3.hpp>
Václav Kubernát24df80e2018-06-06 15:18:03 +020012#include "ast_commands.hpp"
Václav Kubernát0a2a2e82018-05-11 13:59:12 +020013#include "ast_handlers.hpp"
Václav Kubernát9ae8cc42020-03-25 19:17:41 +010014#include "common_parsers.hpp"
15#include "leaf_data.hpp"
Václav Kubernát0a2a2e82018-05-11 13:59:12 +020016
Václav Kubernát60d6f292018-05-25 09:45:32 +020017
Václav Kubernát0a2a2e82018-05-11 13:59:12 +020018x3::rule<keyValue_class, keyValue_> const keyValue = "keyValue";
Václav Kubernát89728d82018-09-13 16:28:28 +020019x3::rule<key_identifier_class, std::string> const key_identifier = "key_identifier";
Václav Kubernát0a2a2e82018-05-11 13:59:12 +020020x3::rule<listPrefix_class, std::string> const listPrefix = "listPrefix";
21x3::rule<listSuffix_class, std::vector<keyValue_>> const listSuffix = "listSuffix";
22x3::rule<listElement_class, listElement_> const listElement = "listElement";
Václav Kubernát2eaceb82018-10-08 19:56:30 +020023x3::rule<list_class, list_> const list = "list";
Václav Kubernát60d6f292018-05-25 09:45:32 +020024x3::rule<nodeup_class, nodeup_> const nodeup = "nodeup";
Václav Kubernát0a2a2e82018-05-11 13:59:12 +020025x3::rule<container_class, container_> const container = "container";
Václav Kubernát07204242018-06-04 18:12:09 +020026x3::rule<leaf_class, leaf_> const leaf = "leaf";
Václav Kubernát2eaceb82018-10-08 19:56:30 +020027x3::rule<dataNode_class, dataNode_> const dataNode = "dataNode";
28x3::rule<schemaNode_class, schemaNode_> const schemaNode = "schemaNode";
Václav Kubernát37171a12018-08-31 17:01:48 +020029x3::rule<absoluteStart_class, Scope> const absoluteStart = "absoluteStart";
Václav Kubernát2eaceb82018-10-08 19:56:30 +020030x3::rule<schemaPath_class, schemaPath_> const schemaPath = "schemaPath";
Václav Kubernátd6fd2492018-11-19 15:11:16 +010031x3::rule<trailingSlash_class, TrailingSlash> const trailingSlash = "trailingSlash";
Václav Kubernát5c75b252018-10-10 18:33:47 +020032x3::rule<dataNodeList_class, decltype(dataPath_::m_nodes)::value_type> const dataNodeList = "dataNodeList";
33x3::rule<dataNodesListEnd_class, decltype(dataPath_::m_nodes)> const dataNodesListEnd = "dataNodesListEnd";
34x3::rule<dataPathListEnd_class, dataPath_> const dataPathListEnd = "dataPathListEnd";
Václav Kubernát2eaceb82018-10-08 19:56:30 +020035x3::rule<dataPath_class, dataPath_> const dataPath = "dataPath";
36x3::rule<leaf_path_class, dataPath_> const leafPath = "leafPath";
Václav Kubernát6797df02019-03-18 20:21:50 +010037x3::rule<presenceContainerPath_class, dataPath_> const presenceContainerPath = "presenceContainerPath";
Václav Kubernátf5f64f02019-03-19 17:15:47 +010038x3::rule<listInstancePath_class, dataPath_> const listInstancePath = "listInstancePath";
Václav Kubernát7160a132020-04-03 02:11:01 +020039x3::rule<space_separator_class, x3::unused_type> const space_separator = "a space";
Václav Kubernátebca2552018-06-08 19:06:02 +020040
Václav Kubernát6d791432018-10-25 16:00:35 +020041x3::rule<discard_class, discard_> const discard = "discard";
Václav Kubernát11afac72018-07-18 14:59:53 +020042x3::rule<ls_class, ls_> const ls = "ls";
Václav Kubernát0a2a2e82018-05-11 13:59:12 +020043x3::rule<cd_class, cd_> const cd = "cd";
Václav Kubernát07204242018-06-04 18:12:09 +020044x3::rule<set_class, set_> const set = "set";
Václav Kubernátb6ff0b62018-08-30 16:14:53 +020045x3::rule<get_class, get_> const get = "get";
Václav Kubernátb61336d2018-05-28 17:35:03 +020046x3::rule<create_class, create_> const create = "create";
47x3::rule<delete_class, delete_> const delete_rule = "delete_rule";
Václav Kubernát812ee282018-08-30 17:10:03 +020048x3::rule<commit_class, commit_> const commit = "commit";
Václav Kubernát9cfcd872020-02-18 12:34:02 +010049x3::rule<describe_class, describe_> const describe = "describe";
Václav Kubernát054cc992019-02-21 14:23:52 +010050x3::rule<help_class, help_> const help = "help";
Václav Kubernát7160a132020-04-03 02:11:01 +020051x3::rule<copy_class, copy_> const copy = "copy";
Václav Kubernátb61336d2018-05-28 17:35:03 +020052x3::rule<command_class, command_> const command = "command";
Václav Kubernát0a2a2e82018-05-11 13:59:12 +020053
Václav Kubernát4108e0d2018-10-29 13:32:22 +010054x3::rule<initializePath_class, x3::unused_type> const initializePath = "initializePath";
55x3::rule<createPathSuggestions_class, x3::unused_type> const createPathSuggestions = "createPathSuggestions";
Václav Kubernát329c6c32019-02-06 16:41:53 +010056x3::rule<createKeySuggestions_class, x3::unused_type> const createKeySuggestions = "createKeySuggestions";
Václav Kubernát43908fb2020-01-02 19:05:51 +010057x3::rule<createValueSuggestions_class, x3::unused_type> const createValueSuggestions = "createValueSuggestions";
Václav Kubernát329c6c32019-02-06 16:41:53 +010058x3::rule<suggestKeysEnd_class, x3::unused_type> const suggestKeysEnd = "suggestKeysEnd";
Václav Kubernát57272422019-02-08 12:48:24 +010059x3::rule<createCommandSuggestions_class, x3::unused_type> const createCommandSuggestions = "createCommandSuggestions";
Václav Kubernátac035d62019-02-18 10:59:08 +010060x3::rule<completing_class, x3::unused_type> const completing = "completing";
Václav Kubernát5c75b252018-10-10 18:33:47 +020061
Václav Kubernát41378452018-06-06 16:29:40 +020062#if __clang__
63#pragma GCC diagnostic push
64#pragma GCC diagnostic ignored "-Woverloaded-shift-op-parentheses"
65#endif
Václav Kubernát0a2a2e82018-05-11 13:59:12 +020066
Václav Kubernát509ce652019-05-29 19:46:44 +020067namespace ascii = boost::spirit::x3::ascii;
68
69using ascii::space;
Václav Kubernát509ce652019-05-29 19:46:44 +020070using x3::alnum;
71using x3::alpha;
72using x3::char_;
Václav Kubernát509ce652019-05-29 19:46:44 +020073using x3::expect;
74using x3::lexeme;
75using x3::lit;
Václav Kubernát509ce652019-05-29 19:46:44 +020076
Václav Kubernát89728d82018-09-13 16:28:28 +020077auto const key_identifier_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +010078 lexeme[
79 ((alpha | char_("_")) >> *(alnum | char_("_") | char_("-") | char_(".")))
80 ];
Václav Kubernát89728d82018-09-13 16:28:28 +020081
Václav Kubernát329c6c32019-02-06 16:41:53 +010082auto const createKeySuggestions_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +010083 x3::eps;
Václav Kubernát329c6c32019-02-06 16:41:53 +010084
Václav Kubernát43908fb2020-01-02 19:05:51 +010085auto const createValueSuggestions_def =
86 x3::eps;
87
Václav Kubernát329c6c32019-02-06 16:41:53 +010088auto const suggestKeysEnd_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +010089 x3::eps;
Václav Kubernát329c6c32019-02-06 16:41:53 +010090
Václav Kubernát0a2a2e82018-05-11 13:59:12 +020091auto const keyValue_def =
Václav Kubernát43908fb2020-01-02 19:05:51 +010092 key_identifier > '=' > createValueSuggestions > leaf_data;
Václav Kubernát329c6c32019-02-06 16:41:53 +010093
94auto const keyValueWrapper =
Václav Kubernátbf083ec2019-02-19 13:58:09 +010095 lexeme['[' > createKeySuggestions > keyValue > suggestKeysEnd > ']'];
Václav Kubernát0a2a2e82018-05-11 13:59:12 +020096
Václav Kubernát0a2a2e82018-05-11 13:59:12 +020097
98auto const listPrefix_def =
Václav Kubernát4c325482019-04-11 17:51:55 +020099 node_identifier;
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200100
Václav Kubernát7e4e82f2018-05-14 20:04:58 +0200101// even though we don't allow no keys to be supplied, the star allows me to check which keys are missing
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200102auto const listSuffix_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100103 *keyValueWrapper;
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200104
105auto const listElement_def =
Václav Kubernáte69133a2019-11-01 19:01:34 +0100106 listPrefix >> &char_('[') > listSuffix;
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200107
Václav Kubernát2eaceb82018-10-08 19:56:30 +0200108auto const list_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100109 node_identifier >> !char_('[');
Václav Kubernát2eaceb82018-10-08 19:56:30 +0200110
Václav Kubernát60d6f292018-05-25 09:45:32 +0200111auto const nodeup_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100112 lit("..") > x3::attr(nodeup_());
Václav Kubernát60d6f292018-05-25 09:45:32 +0200113
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200114auto const container_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100115 node_identifier;
Václav Kubernát744f57f2018-06-29 22:46:26 +0200116
Václav Kubernát07204242018-06-04 18:12:09 +0200117auto const leaf_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100118 node_identifier;
Václav Kubernát07204242018-06-04 18:12:09 +0200119
Václav Kubernát4108e0d2018-10-29 13:32:22 +0100120auto const createPathSuggestions_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100121 x3::eps;
Václav Kubernát4108e0d2018-10-29 13:32:22 +0100122
Václav Kubernát07204242018-06-04 18:12:09 +0200123// leaf cannot be in the middle of a path, however, I need the grammar's attribute to be a vector of variants
Václav Kubernát2eaceb82018-10-08 19:56:30 +0200124auto const schemaNode_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100125 createPathSuggestions >> -(module) >> (container | list | nodeup | leaf);
Václav Kubernát2eaceb82018-10-08 19:56:30 +0200126
127auto const dataNode_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100128 createPathSuggestions >> -(module) >> (container | listElement | nodeup | leaf);
Václav Kubernát744f57f2018-06-29 22:46:26 +0200129
Václav Kubernát37171a12018-08-31 17:01:48 +0200130auto const absoluteStart_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100131 x3::omit['/'] >> x3::attr(Scope::Absolute);
Václav Kubernát37171a12018-08-31 17:01:48 +0200132
Václav Kubernátd6fd2492018-11-19 15:11:16 +0100133auto const trailingSlash_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100134 x3::omit['/'] >> x3::attr(TrailingSlash::Present);
Václav Kubernátd6fd2492018-11-19 15:11:16 +0100135
Václav Kubernát8028f942019-09-25 16:03:23 +0200136auto const space_separator_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100137 x3::omit[x3::no_skip[space]];
Václav Kubernát4108e0d2018-10-29 13:32:22 +0100138
Václav Kubernátac035d62019-02-18 10:59:08 +0100139// This is a pseudo-parser, that fails if we're not completing a command
140auto const completing_def =
Václav Kubernát26be33a2020-02-13 13:30:14 +0100141 x3::no_skip[x3::eps];
142
143auto const rest =
144 x3::omit[x3::no_skip[+(char_ - '/' - space_separator)]];
Václav Kubernátac035d62019-02-18 10:59:08 +0100145
Václav Kubernát37171a12018-08-31 17:01:48 +0200146// I have to insert an empty vector to the first alternative, otherwise they won't have the same attribute
Václav Kubernát26be33a2020-02-13 13:30:14 +0100147auto const dataPath_def = initializePath >> absoluteStart >> createPathSuggestions >> x3::attr(decltype(dataPath_::m_nodes)()) >> x3::attr(TrailingSlash::NonPresent) >> x3::eoi | initializePath >> -(absoluteStart >> createPathSuggestions) >> dataNode % '/' >> (-(trailingSlash >> createPathSuggestions) >> -(completing >> rest) >> (&space_separator | x3::eoi));
Václav Kubernát2eaceb82018-10-08 19:56:30 +0200148
Václav Kubernát5c75b252018-10-10 18:33:47 +0200149auto const dataNodeList_def =
Václav Kubernát51853b22019-04-16 21:53:44 +0200150 createPathSuggestions >> -(module) >> list;
Václav Kubernát5c75b252018-10-10 18:33:47 +0200151
152// This intermediate rule is mandatory, because we need the first alternative
153// to be collapsed to a vector. If we didn't use the intermediate rule,
154// Spirit wouldn't know we want it to collapse.
155// https://github.com/boostorg/spirit/issues/408
156auto const dataNodesListEnd_def =
Václav Kubernát211383d2020-01-06 18:07:50 +0100157 dataNode % '/' >> '/' >> dataNodeList >> -(&char_('/') >> createPathSuggestions) |
158 x3::attr(decltype(dataPath_::m_nodes)()) >> dataNodeList;
Václav Kubernát5c75b252018-10-10 18:33:47 +0200159
Václav Kubernát26be33a2020-02-13 13:30:14 +0100160auto const dataPathListEnd_def = initializePath >> absoluteStart >> createPathSuggestions >> x3::attr(decltype(dataPath_::m_nodes)()) >> x3::attr(TrailingSlash::NonPresent) >> x3::eoi | initializePath >> -(absoluteStart >> createPathSuggestions) >> dataNodesListEnd >> (-(trailingSlash >> createPathSuggestions) >> -(completing >> rest) >> (&space_separator | x3::eoi));
Václav Kubernát5c75b252018-10-10 18:33:47 +0200161
Václav Kubernát26be33a2020-02-13 13:30:14 +0100162auto const schemaPath_def = initializePath >> absoluteStart >> createPathSuggestions >> x3::attr(decltype(schemaPath_::m_nodes)()) >> x3::attr(TrailingSlash::NonPresent) >> x3::eoi | initializePath >> -(absoluteStart >> createPathSuggestions) >> schemaNode % '/' >> (-(trailingSlash >> createPathSuggestions) >> -(completing >> rest) >> (&space_separator | x3::eoi));
Václav Kubernát07204242018-06-04 18:12:09 +0200163
Václav Kubernát0b0272f2018-06-13 14:13:08 +0200164auto const leafPath_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100165 dataPath;
Václav Kubernát0b0272f2018-06-13 14:13:08 +0200166
Václav Kubernát6797df02019-03-18 20:21:50 +0100167auto const presenceContainerPath_def =
168 dataPath;
169
Václav Kubernátf5f64f02019-03-19 17:15:47 +0100170auto const listInstancePath_def =
171 dataPath;
172
Václav Kubernáte7d4aea2018-09-11 18:15:48 +0200173struct ls_options_table : x3::symbols<LsOption> {
174 ls_options_table()
175 {
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100176 add
177 ("--recursive", LsOption::Recursive);
Václav Kubernáte7d4aea2018-09-11 18:15:48 +0200178 }
179} const ls_options;
180
Václav Kubernát4108e0d2018-10-29 13:32:22 +0100181// A "nothing" parser, which is used to indicate we tried to parse a path
182auto const initializePath_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100183 x3::eps;
Václav Kubernát5c75b252018-10-10 18:33:47 +0200184
Václav Kubernát11afac72018-07-18 14:59:53 +0200185auto const ls_def =
Václav Kubernát9456b5c2019-10-02 21:14:52 +0200186 ls_::name >> *(space_separator >> ls_options) >> -(space_separator >> ((dataPathListEnd | dataPath | schemaPath) | (module >> "*")));
Václav Kubernát11afac72018-07-18 14:59:53 +0200187
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200188auto const cd_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100189 cd_::name >> space_separator > dataPath;
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200190
Václav Kubernátb61336d2018-05-28 17:35:03 +0200191auto const create_def =
Václav Kubernátf5f64f02019-03-19 17:15:47 +0100192 create_::name >> space_separator > (presenceContainerPath | listInstancePath);
Václav Kubernátb61336d2018-05-28 17:35:03 +0200193
194auto const delete_rule_def =
Václav Kubernátf5f64f02019-03-19 17:15:47 +0100195 delete_::name >> space_separator > (presenceContainerPath | listInstancePath);
Václav Kubernát07204242018-06-04 18:12:09 +0200196
Václav Kubernátb6ff0b62018-08-30 16:14:53 +0200197auto const get_def =
Václav Kubernát9456b5c2019-10-02 21:14:52 +0200198 get_::name >> -(space_separator >> ((dataPathListEnd | dataPath) | (module >> "*")));
Václav Kubernátb6ff0b62018-08-30 16:14:53 +0200199
Václav Kubernát07204242018-06-04 18:12:09 +0200200auto const set_def =
Václav Kubernát989b5de2019-02-20 16:28:35 +0100201 set_::name >> space_separator > leafPath > space_separator > leaf_data;
Václav Kubernátb61336d2018-05-28 17:35:03 +0200202
Václav Kubernát812ee282018-08-30 17:10:03 +0200203auto const commit_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100204 commit_::name >> x3::attr(commit_());
Václav Kubernát812ee282018-08-30 17:10:03 +0200205
Václav Kubernát6d791432018-10-25 16:00:35 +0200206auto const discard_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100207 discard_::name >> x3::attr(discard_());
Václav Kubernát6d791432018-10-25 16:00:35 +0200208
Václav Kubernát054cc992019-02-21 14:23:52 +0100209struct command_names_table : x3::symbols<decltype(help_::m_cmd)> {
210 command_names_table()
211 {
212 boost::mpl::for_each<CommandTypes, boost::type<boost::mpl::_>>([this](auto cmd) {
213 add(commandNamesVisitor()(cmd), decltype(help_::m_cmd)(cmd));
214 });
215 }
216} const command_names;
217
218auto const help_def =
219 help_::name > createCommandSuggestions >> -command_names;
220
Václav Kubernát7160a132020-04-03 02:11:01 +0200221struct datastore_symbol_table : x3::symbols<Datastore> {
222 datastore_symbol_table()
223 {
224 add
225 ("running", Datastore::Running)
226 ("startup", Datastore::Startup);
227 }
228} const datastore;
229
230auto copy_source = x3::rule<class source, Datastore>{"source datastore"} = datastore;
231auto copy_destination = x3::rule<class source, Datastore>{"destination datastore"} = datastore;
232
233const auto datastoreSuggestions = x3::eps[([](auto& ctx) {
234 auto& parserContext = x3::get<parser_context_tag>(ctx);
235 parserContext.m_suggestions = {Completion{"running", " "}, Completion{"startup", " "}};
236 parserContext.m_completionIterator = _where(ctx).begin();
237})];
238
239struct copy_args : x3::parser<copy_args> {
240 using attribute_type = copy_;
241 template <typename It, typename Ctx, typename RCtx>
242 bool parse(It& begin, It end, Ctx const& ctx, RCtx& rctx, copy_& attr) const
243 {
244 auto& parserContext = x3::get<parser_context_tag>(ctx);
245 auto iterBeforeDestination = begin;
246 auto save_iter = x3::no_skip[x3::eps[([&iterBeforeDestination](auto& ctx) {iterBeforeDestination = _where(ctx).begin();})]];
247 auto grammar = datastoreSuggestions > copy_source > space_separator > datastoreSuggestions > save_iter > copy_destination;
248
249 try {
250 grammar.parse(begin, end, ctx, rctx, attr);
251 } catch (x3::expectation_failure<It>& ex) {
252 using namespace std::string_literals;
253 parserContext.m_errorMsg = "Expected "s + ex.which() + " here:";
254 throw;
255 }
256
257 if (attr.m_source == attr.m_destination) {
258 begin = iterBeforeDestination; // Restoring the iterator here makes the error caret point to the second datastore
259 parserContext.m_errorMsg = "Source datastore and destination datastore can't be the same.";
260 return false;
261 }
262
263 return true;
264 }
265} copy_args;
266
267auto const copy_def =
268 copy_::name > space_separator > copy_args;
269
Václav Kubernát9cfcd872020-02-18 12:34:02 +0100270auto const describe_def =
271 describe_::name >> space_separator > (dataPathListEnd | dataPath | schemaPath);
272
Václav Kubernát57272422019-02-08 12:48:24 +0100273auto const createCommandSuggestions_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100274 x3::eps;
Václav Kubernát57272422019-02-08 12:48:24 +0100275
Václav Kubernátb61336d2018-05-28 17:35:03 +0200276auto const command_def =
Václav Kubernát7160a132020-04-03 02:11:01 +0200277 createCommandSuggestions >> x3::expect[cd | copy | create | delete_rule | set | commit | get | ls | discard | describe | help];
Václav Kubernát41378452018-06-06 16:29:40 +0200278
279#if __clang__
280#pragma GCC diagnostic pop
281#endif
Václav Kubernátb61336d2018-05-28 17:35:03 +0200282
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200283BOOST_SPIRIT_DEFINE(keyValue)
Václav Kubernát89728d82018-09-13 16:28:28 +0200284BOOST_SPIRIT_DEFINE(key_identifier)
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200285BOOST_SPIRIT_DEFINE(listPrefix)
286BOOST_SPIRIT_DEFINE(listSuffix)
287BOOST_SPIRIT_DEFINE(listElement)
Václav Kubernát2eaceb82018-10-08 19:56:30 +0200288BOOST_SPIRIT_DEFINE(list)
Václav Kubernát60d6f292018-05-25 09:45:32 +0200289BOOST_SPIRIT_DEFINE(nodeup)
Václav Kubernát2eaceb82018-10-08 19:56:30 +0200290BOOST_SPIRIT_DEFINE(schemaNode)
291BOOST_SPIRIT_DEFINE(dataNode)
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200292BOOST_SPIRIT_DEFINE(container)
Václav Kubernát07204242018-06-04 18:12:09 +0200293BOOST_SPIRIT_DEFINE(leaf)
Václav Kubernát0b0272f2018-06-13 14:13:08 +0200294BOOST_SPIRIT_DEFINE(leafPath)
Václav Kubernát6797df02019-03-18 20:21:50 +0100295BOOST_SPIRIT_DEFINE(presenceContainerPath)
Václav Kubernátf5f64f02019-03-19 17:15:47 +0100296BOOST_SPIRIT_DEFINE(listInstancePath)
Václav Kubernát8028f942019-09-25 16:03:23 +0200297BOOST_SPIRIT_DEFINE(space_separator)
Václav Kubernát2eaceb82018-10-08 19:56:30 +0200298BOOST_SPIRIT_DEFINE(schemaPath)
299BOOST_SPIRIT_DEFINE(dataPath)
Václav Kubernát5c75b252018-10-10 18:33:47 +0200300BOOST_SPIRIT_DEFINE(dataNodeList)
301BOOST_SPIRIT_DEFINE(dataNodesListEnd)
302BOOST_SPIRIT_DEFINE(dataPathListEnd)
Václav Kubernát37171a12018-08-31 17:01:48 +0200303BOOST_SPIRIT_DEFINE(absoluteStart)
Václav Kubernátd6fd2492018-11-19 15:11:16 +0100304BOOST_SPIRIT_DEFINE(trailingSlash)
Václav Kubernát4108e0d2018-10-29 13:32:22 +0100305BOOST_SPIRIT_DEFINE(initializePath)
Václav Kubernát07204242018-06-04 18:12:09 +0200306BOOST_SPIRIT_DEFINE(set)
Václav Kubernát812ee282018-08-30 17:10:03 +0200307BOOST_SPIRIT_DEFINE(commit)
Václav Kubernátb6ff0b62018-08-30 16:14:53 +0200308BOOST_SPIRIT_DEFINE(get)
Václav Kubernát11afac72018-07-18 14:59:53 +0200309BOOST_SPIRIT_DEFINE(ls)
Václav Kubernát6d791432018-10-25 16:00:35 +0200310BOOST_SPIRIT_DEFINE(discard)
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200311BOOST_SPIRIT_DEFINE(cd)
Václav Kubernátb61336d2018-05-28 17:35:03 +0200312BOOST_SPIRIT_DEFINE(create)
313BOOST_SPIRIT_DEFINE(delete_rule)
Václav Kubernát9cfcd872020-02-18 12:34:02 +0100314BOOST_SPIRIT_DEFINE(describe)
Václav Kubernát054cc992019-02-21 14:23:52 +0100315BOOST_SPIRIT_DEFINE(help)
Václav Kubernát7160a132020-04-03 02:11:01 +0200316BOOST_SPIRIT_DEFINE(copy)
Václav Kubernátb61336d2018-05-28 17:35:03 +0200317BOOST_SPIRIT_DEFINE(command)
Václav Kubernát4108e0d2018-10-29 13:32:22 +0100318BOOST_SPIRIT_DEFINE(createPathSuggestions)
Václav Kubernát329c6c32019-02-06 16:41:53 +0100319BOOST_SPIRIT_DEFINE(createKeySuggestions)
Václav Kubernát43908fb2020-01-02 19:05:51 +0100320BOOST_SPIRIT_DEFINE(createValueSuggestions)
Václav Kubernát329c6c32019-02-06 16:41:53 +0100321BOOST_SPIRIT_DEFINE(suggestKeysEnd)
Václav Kubernát57272422019-02-08 12:48:24 +0100322BOOST_SPIRIT_DEFINE(createCommandSuggestions)
Václav Kubernátac035d62019-02-18 10:59:08 +0100323BOOST_SPIRIT_DEFINE(completing)