blob: 9e4e35f03142319a9a03bac64d21c3d93e173516 [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át8028f942019-09-25 16:03:23 +020039x3::rule<space_separator_class, x3::unused_type> const space_separator = "space_separator";
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átb61336d2018-05-28 17:35:03 +020051x3::rule<command_class, command_> const command = "command";
Václav Kubernát0a2a2e82018-05-11 13:59:12 +020052
Václav Kubernát4108e0d2018-10-29 13:32:22 +010053x3::rule<initializePath_class, x3::unused_type> const initializePath = "initializePath";
54x3::rule<createPathSuggestions_class, x3::unused_type> const createPathSuggestions = "createPathSuggestions";
Václav Kubernát329c6c32019-02-06 16:41:53 +010055x3::rule<createKeySuggestions_class, x3::unused_type> const createKeySuggestions = "createKeySuggestions";
Václav Kubernát43908fb2020-01-02 19:05:51 +010056x3::rule<createValueSuggestions_class, x3::unused_type> const createValueSuggestions = "createValueSuggestions";
Václav Kubernát329c6c32019-02-06 16:41:53 +010057x3::rule<suggestKeysEnd_class, x3::unused_type> const suggestKeysEnd = "suggestKeysEnd";
Václav Kubernát57272422019-02-08 12:48:24 +010058x3::rule<createCommandSuggestions_class, x3::unused_type> const createCommandSuggestions = "createCommandSuggestions";
Václav Kubernátac035d62019-02-18 10:59:08 +010059x3::rule<completing_class, x3::unused_type> const completing = "completing";
Václav Kubernát5c75b252018-10-10 18:33:47 +020060
Václav Kubernát41378452018-06-06 16:29:40 +020061#if __clang__
62#pragma GCC diagnostic push
63#pragma GCC diagnostic ignored "-Woverloaded-shift-op-parentheses"
64#endif
Václav Kubernát0a2a2e82018-05-11 13:59:12 +020065
Václav Kubernát509ce652019-05-29 19:46:44 +020066namespace ascii = boost::spirit::x3::ascii;
67
68using ascii::space;
Václav Kubernát509ce652019-05-29 19:46:44 +020069using x3::alnum;
70using x3::alpha;
71using x3::char_;
Václav Kubernát509ce652019-05-29 19:46:44 +020072using x3::expect;
73using x3::lexeme;
74using x3::lit;
Václav Kubernát509ce652019-05-29 19:46:44 +020075
Václav Kubernát89728d82018-09-13 16:28:28 +020076auto const key_identifier_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +010077 lexeme[
78 ((alpha | char_("_")) >> *(alnum | char_("_") | char_("-") | char_(".")))
79 ];
Václav Kubernát89728d82018-09-13 16:28:28 +020080
Václav Kubernát329c6c32019-02-06 16:41:53 +010081auto const createKeySuggestions_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +010082 x3::eps;
Václav Kubernát329c6c32019-02-06 16:41:53 +010083
Václav Kubernát43908fb2020-01-02 19:05:51 +010084auto const createValueSuggestions_def =
85 x3::eps;
86
Václav Kubernát329c6c32019-02-06 16:41:53 +010087auto const suggestKeysEnd_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +010088 x3::eps;
Václav Kubernát329c6c32019-02-06 16:41:53 +010089
Václav Kubernát0a2a2e82018-05-11 13:59:12 +020090auto const keyValue_def =
Václav Kubernát43908fb2020-01-02 19:05:51 +010091 key_identifier > '=' > createValueSuggestions > leaf_data;
Václav Kubernát329c6c32019-02-06 16:41:53 +010092
93auto const keyValueWrapper =
Václav Kubernátbf083ec2019-02-19 13:58:09 +010094 lexeme['[' > createKeySuggestions > keyValue > suggestKeysEnd > ']'];
Václav Kubernát0a2a2e82018-05-11 13:59:12 +020095
Václav Kubernát0a2a2e82018-05-11 13:59:12 +020096
97auto const listPrefix_def =
Václav Kubernát4c325482019-04-11 17:51:55 +020098 node_identifier;
Václav Kubernát0a2a2e82018-05-11 13:59:12 +020099
Václav Kubernát7e4e82f2018-05-14 20:04:58 +0200100// 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 +0200101auto const listSuffix_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100102 *keyValueWrapper;
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200103
104auto const listElement_def =
Václav Kubernáte69133a2019-11-01 19:01:34 +0100105 listPrefix >> &char_('[') > listSuffix;
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200106
Václav Kubernát2eaceb82018-10-08 19:56:30 +0200107auto const list_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100108 node_identifier >> !char_('[');
Václav Kubernát2eaceb82018-10-08 19:56:30 +0200109
Václav Kubernát60d6f292018-05-25 09:45:32 +0200110auto const nodeup_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100111 lit("..") > x3::attr(nodeup_());
Václav Kubernát60d6f292018-05-25 09:45:32 +0200112
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200113auto const container_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100114 node_identifier;
Václav Kubernát744f57f2018-06-29 22:46:26 +0200115
Václav Kubernát07204242018-06-04 18:12:09 +0200116auto const leaf_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100117 node_identifier;
Václav Kubernát07204242018-06-04 18:12:09 +0200118
Václav Kubernát4108e0d2018-10-29 13:32:22 +0100119auto const createPathSuggestions_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100120 x3::eps;
Václav Kubernát4108e0d2018-10-29 13:32:22 +0100121
Václav Kubernát07204242018-06-04 18:12:09 +0200122// 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 +0200123auto const schemaNode_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100124 createPathSuggestions >> -(module) >> (container | list | nodeup | leaf);
Václav Kubernát2eaceb82018-10-08 19:56:30 +0200125
126auto const dataNode_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100127 createPathSuggestions >> -(module) >> (container | listElement | nodeup | leaf);
Václav Kubernát744f57f2018-06-29 22:46:26 +0200128
Václav Kubernát37171a12018-08-31 17:01:48 +0200129auto const absoluteStart_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100130 x3::omit['/'] >> x3::attr(Scope::Absolute);
Václav Kubernát37171a12018-08-31 17:01:48 +0200131
Václav Kubernátd6fd2492018-11-19 15:11:16 +0100132auto const trailingSlash_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100133 x3::omit['/'] >> x3::attr(TrailingSlash::Present);
Václav Kubernátd6fd2492018-11-19 15:11:16 +0100134
Václav Kubernát8028f942019-09-25 16:03:23 +0200135auto const space_separator_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100136 x3::omit[x3::no_skip[space]];
Václav Kubernát4108e0d2018-10-29 13:32:22 +0100137
Václav Kubernátac035d62019-02-18 10:59:08 +0100138// This is a pseudo-parser, that fails if we're not completing a command
139auto const completing_def =
Václav Kubernát26be33a2020-02-13 13:30:14 +0100140 x3::no_skip[x3::eps];
141
142auto const rest =
143 x3::omit[x3::no_skip[+(char_ - '/' - space_separator)]];
Václav Kubernátac035d62019-02-18 10:59:08 +0100144
Václav Kubernát37171a12018-08-31 17:01:48 +0200145// 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 +0100146auto 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 +0200147
Václav Kubernát5c75b252018-10-10 18:33:47 +0200148auto const dataNodeList_def =
Václav Kubernát51853b22019-04-16 21:53:44 +0200149 createPathSuggestions >> -(module) >> list;
Václav Kubernát5c75b252018-10-10 18:33:47 +0200150
151// This intermediate rule is mandatory, because we need the first alternative
152// to be collapsed to a vector. If we didn't use the intermediate rule,
153// Spirit wouldn't know we want it to collapse.
154// https://github.com/boostorg/spirit/issues/408
155auto const dataNodesListEnd_def =
Václav Kubernát211383d2020-01-06 18:07:50 +0100156 dataNode % '/' >> '/' >> dataNodeList >> -(&char_('/') >> createPathSuggestions) |
157 x3::attr(decltype(dataPath_::m_nodes)()) >> dataNodeList;
Václav Kubernát5c75b252018-10-10 18:33:47 +0200158
Václav Kubernát26be33a2020-02-13 13:30:14 +0100159auto 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 +0200160
Václav Kubernát26be33a2020-02-13 13:30:14 +0100161auto 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 +0200162
Václav Kubernát0b0272f2018-06-13 14:13:08 +0200163auto const leafPath_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100164 dataPath;
Václav Kubernát0b0272f2018-06-13 14:13:08 +0200165
Václav Kubernát6797df02019-03-18 20:21:50 +0100166auto const presenceContainerPath_def =
167 dataPath;
168
Václav Kubernátf5f64f02019-03-19 17:15:47 +0100169auto const listInstancePath_def =
170 dataPath;
171
Václav Kubernáte7d4aea2018-09-11 18:15:48 +0200172struct ls_options_table : x3::symbols<LsOption> {
173 ls_options_table()
174 {
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100175 add
176 ("--recursive", LsOption::Recursive);
Václav Kubernáte7d4aea2018-09-11 18:15:48 +0200177 }
178} const ls_options;
179
Václav Kubernát4108e0d2018-10-29 13:32:22 +0100180// A "nothing" parser, which is used to indicate we tried to parse a path
181auto const initializePath_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100182 x3::eps;
Václav Kubernát5c75b252018-10-10 18:33:47 +0200183
Václav Kubernát11afac72018-07-18 14:59:53 +0200184auto const ls_def =
Václav Kubernát9456b5c2019-10-02 21:14:52 +0200185 ls_::name >> *(space_separator >> ls_options) >> -(space_separator >> ((dataPathListEnd | dataPath | schemaPath) | (module >> "*")));
Václav Kubernát11afac72018-07-18 14:59:53 +0200186
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200187auto const cd_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100188 cd_::name >> space_separator > dataPath;
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200189
Václav Kubernátb61336d2018-05-28 17:35:03 +0200190auto const create_def =
Václav Kubernátf5f64f02019-03-19 17:15:47 +0100191 create_::name >> space_separator > (presenceContainerPath | listInstancePath);
Václav Kubernátb61336d2018-05-28 17:35:03 +0200192
193auto const delete_rule_def =
Václav Kubernátf5f64f02019-03-19 17:15:47 +0100194 delete_::name >> space_separator > (presenceContainerPath | listInstancePath);
Václav Kubernát07204242018-06-04 18:12:09 +0200195
Václav Kubernátb6ff0b62018-08-30 16:14:53 +0200196auto const get_def =
Václav Kubernát9456b5c2019-10-02 21:14:52 +0200197 get_::name >> -(space_separator >> ((dataPathListEnd | dataPath) | (module >> "*")));
Václav Kubernátb6ff0b62018-08-30 16:14:53 +0200198
Václav Kubernát07204242018-06-04 18:12:09 +0200199auto const set_def =
Václav Kubernát989b5de2019-02-20 16:28:35 +0100200 set_::name >> space_separator > leafPath > space_separator > leaf_data;
Václav Kubernátb61336d2018-05-28 17:35:03 +0200201
Václav Kubernát812ee282018-08-30 17:10:03 +0200202auto const commit_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100203 commit_::name >> x3::attr(commit_());
Václav Kubernát812ee282018-08-30 17:10:03 +0200204
Václav Kubernát6d791432018-10-25 16:00:35 +0200205auto const discard_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100206 discard_::name >> x3::attr(discard_());
Václav Kubernát6d791432018-10-25 16:00:35 +0200207
Václav Kubernát054cc992019-02-21 14:23:52 +0100208struct command_names_table : x3::symbols<decltype(help_::m_cmd)> {
209 command_names_table()
210 {
211 boost::mpl::for_each<CommandTypes, boost::type<boost::mpl::_>>([this](auto cmd) {
212 add(commandNamesVisitor()(cmd), decltype(help_::m_cmd)(cmd));
213 });
214 }
215} const command_names;
216
217auto const help_def =
218 help_::name > createCommandSuggestions >> -command_names;
219
Václav Kubernát9cfcd872020-02-18 12:34:02 +0100220auto const describe_def =
221 describe_::name >> space_separator > (dataPathListEnd | dataPath | schemaPath);
222
Václav Kubernát57272422019-02-08 12:48:24 +0100223auto const createCommandSuggestions_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100224 x3::eps;
Václav Kubernát57272422019-02-08 12:48:24 +0100225
Václav Kubernátb61336d2018-05-28 17:35:03 +0200226auto const command_def =
Václav Kubernát9cfcd872020-02-18 12:34:02 +0100227 createCommandSuggestions >> x3::expect[cd | create | delete_rule | set | commit | get | ls | discard | describe | help];
Václav Kubernát41378452018-06-06 16:29:40 +0200228
229#if __clang__
230#pragma GCC diagnostic pop
231#endif
Václav Kubernátb61336d2018-05-28 17:35:03 +0200232
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200233BOOST_SPIRIT_DEFINE(keyValue)
Václav Kubernát89728d82018-09-13 16:28:28 +0200234BOOST_SPIRIT_DEFINE(key_identifier)
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200235BOOST_SPIRIT_DEFINE(listPrefix)
236BOOST_SPIRIT_DEFINE(listSuffix)
237BOOST_SPIRIT_DEFINE(listElement)
Václav Kubernát2eaceb82018-10-08 19:56:30 +0200238BOOST_SPIRIT_DEFINE(list)
Václav Kubernát60d6f292018-05-25 09:45:32 +0200239BOOST_SPIRIT_DEFINE(nodeup)
Václav Kubernát2eaceb82018-10-08 19:56:30 +0200240BOOST_SPIRIT_DEFINE(schemaNode)
241BOOST_SPIRIT_DEFINE(dataNode)
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200242BOOST_SPIRIT_DEFINE(container)
Václav Kubernát07204242018-06-04 18:12:09 +0200243BOOST_SPIRIT_DEFINE(leaf)
Václav Kubernát0b0272f2018-06-13 14:13:08 +0200244BOOST_SPIRIT_DEFINE(leafPath)
Václav Kubernát6797df02019-03-18 20:21:50 +0100245BOOST_SPIRIT_DEFINE(presenceContainerPath)
Václav Kubernátf5f64f02019-03-19 17:15:47 +0100246BOOST_SPIRIT_DEFINE(listInstancePath)
Václav Kubernát8028f942019-09-25 16:03:23 +0200247BOOST_SPIRIT_DEFINE(space_separator)
Václav Kubernát2eaceb82018-10-08 19:56:30 +0200248BOOST_SPIRIT_DEFINE(schemaPath)
249BOOST_SPIRIT_DEFINE(dataPath)
Václav Kubernát5c75b252018-10-10 18:33:47 +0200250BOOST_SPIRIT_DEFINE(dataNodeList)
251BOOST_SPIRIT_DEFINE(dataNodesListEnd)
252BOOST_SPIRIT_DEFINE(dataPathListEnd)
Václav Kubernát37171a12018-08-31 17:01:48 +0200253BOOST_SPIRIT_DEFINE(absoluteStart)
Václav Kubernátd6fd2492018-11-19 15:11:16 +0100254BOOST_SPIRIT_DEFINE(trailingSlash)
Václav Kubernát4108e0d2018-10-29 13:32:22 +0100255BOOST_SPIRIT_DEFINE(initializePath)
Václav Kubernát07204242018-06-04 18:12:09 +0200256BOOST_SPIRIT_DEFINE(set)
Václav Kubernát812ee282018-08-30 17:10:03 +0200257BOOST_SPIRIT_DEFINE(commit)
Václav Kubernátb6ff0b62018-08-30 16:14:53 +0200258BOOST_SPIRIT_DEFINE(get)
Václav Kubernát11afac72018-07-18 14:59:53 +0200259BOOST_SPIRIT_DEFINE(ls)
Václav Kubernát6d791432018-10-25 16:00:35 +0200260BOOST_SPIRIT_DEFINE(discard)
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200261BOOST_SPIRIT_DEFINE(cd)
Václav Kubernátb61336d2018-05-28 17:35:03 +0200262BOOST_SPIRIT_DEFINE(create)
263BOOST_SPIRIT_DEFINE(delete_rule)
Václav Kubernát9cfcd872020-02-18 12:34:02 +0100264BOOST_SPIRIT_DEFINE(describe)
Václav Kubernát054cc992019-02-21 14:23:52 +0100265BOOST_SPIRIT_DEFINE(help)
Václav Kubernátb61336d2018-05-28 17:35:03 +0200266BOOST_SPIRIT_DEFINE(command)
Václav Kubernát4108e0d2018-10-29 13:32:22 +0100267BOOST_SPIRIT_DEFINE(createPathSuggestions)
Václav Kubernát329c6c32019-02-06 16:41:53 +0100268BOOST_SPIRIT_DEFINE(createKeySuggestions)
Václav Kubernát43908fb2020-01-02 19:05:51 +0100269BOOST_SPIRIT_DEFINE(createValueSuggestions)
Václav Kubernát329c6c32019-02-06 16:41:53 +0100270BOOST_SPIRIT_DEFINE(suggestKeysEnd)
Václav Kubernát57272422019-02-08 12:48:24 +0100271BOOST_SPIRIT_DEFINE(createCommandSuggestions)
Václav Kubernátac035d62019-02-18 10:59:08 +0100272BOOST_SPIRIT_DEFINE(completing)