blob: c12f922ae18be67cc772bf02c97832ca0557b3ce [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át24df80e2018-06-06 15:18:03 +020011#include "ast_commands.hpp"
Václav Kubernát0a2a2e82018-05-11 13:59:12 +020012#include "ast_handlers.hpp"
13
Václav Kubernát60d6f292018-05-25 09:45:32 +020014
Václav Kubernát0a2a2e82018-05-11 13:59:12 +020015x3::rule<keyValue_class, keyValue_> const keyValue = "keyValue";
Václav Kubernát89728d82018-09-13 16:28:28 +020016x3::rule<key_identifier_class, std::string> const key_identifier = "key_identifier";
Václav Kubernát744f57f2018-06-29 22:46:26 +020017x3::rule<node_identifier_class, std::string> const node_identifier = "node_identifier";
18x3::rule<module_identifier_class, std::string> const module_identifier = "module_identifier";
Václav Kubernát0a2a2e82018-05-11 13:59:12 +020019x3::rule<listPrefix_class, std::string> const listPrefix = "listPrefix";
20x3::rule<listSuffix_class, std::vector<keyValue_>> const listSuffix = "listSuffix";
21x3::rule<listElement_class, listElement_> const listElement = "listElement";
Václav Kubernát2eaceb82018-10-08 19:56:30 +020022x3::rule<list_class, list_> const list = "list";
Václav Kubernát60d6f292018-05-25 09:45:32 +020023x3::rule<nodeup_class, nodeup_> const nodeup = "nodeup";
Václav Kubernát0a2a2e82018-05-11 13:59:12 +020024x3::rule<container_class, container_> const container = "container";
Václav Kubernát07204242018-06-04 18:12:09 +020025x3::rule<leaf_class, leaf_> const leaf = "leaf";
Václav Kubernát744f57f2018-06-29 22:46:26 +020026x3::rule<module_class, module_> const module = "module";
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átebca2552018-06-08 19:06:02 +020037
38x3::rule<leaf_data_class, leaf_data_> const leaf_data = "leaf_data";
39x3::rule<leaf_data_enum_class, enum_> const leaf_data_enum = "leaf_data_enum";
40x3::rule<leaf_data_decimal_class, double> const leaf_data_decimal = "leaf_data_decimal";
41x3::rule<leaf_data_bool_class, bool> const leaf_data_bool = "leaf_data_bool";
42x3::rule<leaf_data_int_class, int32_t> const leaf_data_int = "leaf_data_int";
43x3::rule<leaf_data_uint_class, uint32_t> const leaf_data_uint = "leaf_data_uint";
44x3::rule<leaf_data_string_class, std::string> const leaf_data_string = "leaf_data_string";
45
Václav Kubernát6d791432018-10-25 16:00:35 +020046x3::rule<discard_class, discard_> const discard = "discard";
Václav Kubernát11afac72018-07-18 14:59:53 +020047x3::rule<ls_class, ls_> const ls = "ls";
Václav Kubernát0a2a2e82018-05-11 13:59:12 +020048x3::rule<cd_class, cd_> const cd = "cd";
Václav Kubernát07204242018-06-04 18:12:09 +020049x3::rule<set_class, set_> const set = "set";
Václav Kubernátb6ff0b62018-08-30 16:14:53 +020050x3::rule<get_class, get_> const get = "get";
Václav Kubernátb61336d2018-05-28 17:35:03 +020051x3::rule<create_class, create_> const create = "create";
52x3::rule<delete_class, delete_> const delete_rule = "delete_rule";
Václav Kubernát812ee282018-08-30 17:10:03 +020053x3::rule<commit_class, commit_> const commit = "commit";
Václav Kubernátb61336d2018-05-28 17:35:03 +020054x3::rule<command_class, command_> const command = "command";
Václav Kubernát0a2a2e82018-05-11 13:59:12 +020055
Václav Kubernát4108e0d2018-10-29 13:32:22 +010056x3::rule<initializePath_class, x3::unused_type> const initializePath = "initializePath";
57x3::rule<createPathSuggestions_class, x3::unused_type> const createPathSuggestions = "createPathSuggestions";
Václav Kubernát329c6c32019-02-06 16:41:53 +010058x3::rule<createKeySuggestions_class, x3::unused_type> const createKeySuggestions = "createKeySuggestions";
59x3::rule<suggestKeysEnd_class, x3::unused_type> const suggestKeysEnd = "suggestKeysEnd";
Václav Kubernát57272422019-02-08 12:48:24 +010060x3::rule<createCommandSuggestions_class, x3::unused_type> const createCommandSuggestions = "createCommandSuggestions";
Václav Kubernátac035d62019-02-18 10:59:08 +010061x3::rule<completing_class, x3::unused_type> const completing = "completing";
Václav Kubernát989b5de2019-02-20 16:28:35 +010062x3::rule<createEnumSuggestions_class, x3::unused_type> const createEnumSuggestions = "createEnumSuggestions";
Václav Kubernát5c75b252018-10-10 18:33:47 +020063
Václav Kubernát41378452018-06-06 16:29:40 +020064#if __clang__
65#pragma GCC diagnostic push
66#pragma GCC diagnostic ignored "-Woverloaded-shift-op-parentheses"
67#endif
Václav Kubernát0a2a2e82018-05-11 13:59:12 +020068
Václav Kubernát89728d82018-09-13 16:28:28 +020069auto const key_identifier_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +010070 lexeme[
71 ((alpha | char_("_")) >> *(alnum | char_("_") | char_("-") | char_(".")))
72 ];
Václav Kubernát89728d82018-09-13 16:28:28 +020073
74auto const quotedValue =
Václav Kubernátbf083ec2019-02-19 13:58:09 +010075 ('\'' > +(char_-'\'') > '\'') |
76 ('\"' > +(char_-'\"') > '\"');
Václav Kubernát89728d82018-09-13 16:28:28 +020077
78auto const number =
Václav Kubernátbf083ec2019-02-19 13:58:09 +010079 +x3::digit;
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
84auto const suggestKeysEnd_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +010085 x3::eps;
Václav Kubernát329c6c32019-02-06 16:41:53 +010086
Václav Kubernát0a2a2e82018-05-11 13:59:12 +020087auto const keyValue_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +010088 key_identifier > '=' > (quotedValue | number);
Václav Kubernát329c6c32019-02-06 16:41:53 +010089
90auto const keyValueWrapper =
Václav Kubernátbf083ec2019-02-19 13:58:09 +010091 lexeme['[' > createKeySuggestions > keyValue > suggestKeysEnd > ']'];
Václav Kubernát0a2a2e82018-05-11 13:59:12 +020092
Václav Kubernát744f57f2018-06-29 22:46:26 +020093auto const module_identifier_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +010094 lexeme[
95 ((alpha | char_("_")) >> *(alnum | char_("_") | char_("-") | char_(".")))
96 ];
Václav Kubernát744f57f2018-06-29 22:46:26 +020097
98auto const node_identifier_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +010099 lexeme[
100 ((alpha | char_("_")) >> *(alnum | char_("_") | char_("-") | char_(".")))
101 ];
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200102
103auto const listPrefix_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100104 node_identifier >> &char_('[');
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200105
Václav Kubernát7e4e82f2018-05-14 20:04:58 +0200106// 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 +0200107auto const listSuffix_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100108 *keyValueWrapper;
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200109
110auto const listElement_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100111 listPrefix > listSuffix;
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200112
Václav Kubernát2eaceb82018-10-08 19:56:30 +0200113auto const list_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100114 node_identifier >> !char_('[');
Václav Kubernát2eaceb82018-10-08 19:56:30 +0200115
Václav Kubernát60d6f292018-05-25 09:45:32 +0200116auto const nodeup_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100117 lit("..") > x3::attr(nodeup_());
Václav Kubernát60d6f292018-05-25 09:45:32 +0200118
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200119auto const container_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100120 node_identifier;
Václav Kubernát744f57f2018-06-29 22:46:26 +0200121
122auto const module_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100123 module_identifier >> x3::no_skip[':'] >> !x3::no_skip[space];
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200124
Václav Kubernát07204242018-06-04 18:12:09 +0200125auto const leaf_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100126 node_identifier;
Václav Kubernát07204242018-06-04 18:12:09 +0200127
Václav Kubernát4108e0d2018-10-29 13:32:22 +0100128auto const createPathSuggestions_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100129 x3::eps;
Václav Kubernát4108e0d2018-10-29 13:32:22 +0100130
Václav Kubernát07204242018-06-04 18:12:09 +0200131// 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 +0200132auto const schemaNode_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100133 createPathSuggestions >> -(module) >> (container | list | nodeup | leaf);
Václav Kubernát2eaceb82018-10-08 19:56:30 +0200134
135auto const dataNode_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100136 createPathSuggestions >> -(module) >> (container | listElement | nodeup | leaf);
Václav Kubernát744f57f2018-06-29 22:46:26 +0200137
Václav Kubernát37171a12018-08-31 17:01:48 +0200138auto const absoluteStart_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100139 x3::omit['/'] >> x3::attr(Scope::Absolute);
Václav Kubernát37171a12018-08-31 17:01:48 +0200140
Václav Kubernátd6fd2492018-11-19 15:11:16 +0100141auto const trailingSlash_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100142 x3::omit['/'] >> x3::attr(TrailingSlash::Present);
Václav Kubernátd6fd2492018-11-19 15:11:16 +0100143
Václav Kubernát4108e0d2018-10-29 13:32:22 +0100144auto const space_separator =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100145 x3::omit[x3::no_skip[space]];
Václav Kubernát4108e0d2018-10-29 13:32:22 +0100146
Václav Kubernátac035d62019-02-18 10:59:08 +0100147// This is a pseudo-parser, that fails if we're not completing a command
148auto const completing_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100149 x3::eps;
Václav Kubernátac035d62019-02-18 10:59:08 +0100150
Václav Kubernát37171a12018-08-31 17:01:48 +0200151// I have to insert an empty vector to the first alternative, otherwise they won't have the same attribute
Václav Kubernát2eaceb82018-10-08 19:56:30 +0200152auto const dataPath_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100153 initializePath >> absoluteStart >> createPathSuggestions >> x3::attr(decltype(dataPath_::m_nodes)()) >> x3::attr(TrailingSlash::NonPresent) >> x3::eoi |
154 initializePath >> -(absoluteStart >> createPathSuggestions) >> dataNode % '/' >> (trailingSlash >> createPathSuggestions >> (completing | x3::eoi) | (&space_separator | x3::eoi));
Václav Kubernát2eaceb82018-10-08 19:56:30 +0200155
Václav Kubernát5c75b252018-10-10 18:33:47 +0200156auto const dataNodeList_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100157 -(module) >> createPathSuggestions >> list;
Václav Kubernát5c75b252018-10-10 18:33:47 +0200158
159// This intermediate rule is mandatory, because we need the first alternative
160// to be collapsed to a vector. If we didn't use the intermediate rule,
161// Spirit wouldn't know we want it to collapse.
162// https://github.com/boostorg/spirit/issues/408
163auto const dataNodesListEnd_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100164 initializePath >> dataNode % '/' >> '/' >> dataNodeList >> -(&char_('/') >> createPathSuggestions) |
165 initializePath >> x3::attr(decltype(dataPath_::m_nodes)()) >> dataNodeList;
Václav Kubernát5c75b252018-10-10 18:33:47 +0200166
167auto const dataPathListEnd_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100168 initializePath >> absoluteStart >> createPathSuggestions >> x3::attr(decltype(dataPath_::m_nodes)()) >> x3::attr(TrailingSlash::NonPresent) >> x3::eoi |
169 initializePath >> -(absoluteStart >> createPathSuggestions) >> dataNodesListEnd >> (trailingSlash >> createPathSuggestions >> (completing | x3::eoi) | (&space_separator | x3::eoi));
Václav Kubernát5c75b252018-10-10 18:33:47 +0200170
Václav Kubernát2eaceb82018-10-08 19:56:30 +0200171auto const schemaPath_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100172 initializePath >> absoluteStart >> createPathSuggestions >> x3::attr(decltype(schemaPath_::m_nodes)()) >> x3::attr(TrailingSlash::NonPresent) >> x3::eoi |
173 initializePath >> -(absoluteStart >> createPathSuggestions) >> schemaNode % '/' >> (trailingSlash >> createPathSuggestions >> (completing | x3::eoi) | (&space_separator | x3::eoi));
Václav Kubernát07204242018-06-04 18:12:09 +0200174
Václav Kubernát0b0272f2018-06-13 14:13:08 +0200175auto const leafPath_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100176 dataPath;
Václav Kubernát0b0272f2018-06-13 14:13:08 +0200177
Václav Kubernát989b5de2019-02-20 16:28:35 +0100178auto const createEnumSuggestions_def =
179 x3::eps;
180
Václav Kubernátebca2552018-06-08 19:06:02 +0200181auto const leaf_data_enum_def =
Václav Kubernát989b5de2019-02-20 16:28:35 +0100182 createEnumSuggestions >> +char_;
Václav Kubernátebca2552018-06-08 19:06:02 +0200183auto const leaf_data_decimal_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100184 double_;
Václav Kubernátebca2552018-06-08 19:06:02 +0200185
186struct bool_symbol_table : x3::symbols<bool> {
187 bool_symbol_table()
188 {
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100189 add
190 ("true", true)
191 ("false", false);
Václav Kubernátebca2552018-06-08 19:06:02 +0200192 }
193} const bool_rule;
194
195auto const leaf_data_bool_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100196 bool_rule;
Václav Kubernátebca2552018-06-08 19:06:02 +0200197auto const leaf_data_int_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100198 int_;
Václav Kubernátebca2552018-06-08 19:06:02 +0200199auto const leaf_data_uint_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100200 uint_;
Václav Kubernátebca2552018-06-08 19:06:02 +0200201auto const leaf_data_string_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100202 *char_;
Václav Kubernátebca2552018-06-08 19:06:02 +0200203
204auto const leaf_data_def =
Václav Kubernát0b0272f2018-06-13 14:13:08 +0200205x3::expect[
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100206 leaf_data_enum |
207 leaf_data_decimal |
208 leaf_data_bool |
209 leaf_data_int |
210 leaf_data_uint |
211 leaf_data_string];
Václav Kubernát07204242018-06-04 18:12:09 +0200212
Václav Kubernáte7d4aea2018-09-11 18:15:48 +0200213struct ls_options_table : x3::symbols<LsOption> {
214 ls_options_table()
215 {
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100216 add
217 ("--recursive", LsOption::Recursive);
Václav Kubernáte7d4aea2018-09-11 18:15:48 +0200218 }
219} const ls_options;
220
Václav Kubernát4108e0d2018-10-29 13:32:22 +0100221// A "nothing" parser, which is used to indicate we tried to parse a path
222auto const initializePath_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100223 x3::eps;
Václav Kubernát5c75b252018-10-10 18:33:47 +0200224
Václav Kubernát11afac72018-07-18 14:59:53 +0200225auto const ls_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100226 ls_::name >> *(space_separator >> ls_options) >> -(space_separator >> (dataPathListEnd | dataPath | schemaPath));
Václav Kubernát11afac72018-07-18 14:59:53 +0200227
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200228auto const cd_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100229 cd_::name >> space_separator > dataPath;
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200230
Václav Kubernátb61336d2018-05-28 17:35:03 +0200231auto const create_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100232 create_::name >> space_separator > dataPath;
Václav Kubernátb61336d2018-05-28 17:35:03 +0200233
234auto const delete_rule_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100235 delete_::name >> space_separator > dataPath;
Václav Kubernát07204242018-06-04 18:12:09 +0200236
Václav Kubernátb6ff0b62018-08-30 16:14:53 +0200237auto const get_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100238 get_::name >> -(space_separator >> (dataPathListEnd | dataPath));
Václav Kubernátb6ff0b62018-08-30 16:14:53 +0200239
Václav Kubernát07204242018-06-04 18:12:09 +0200240auto const set_def =
Václav Kubernát989b5de2019-02-20 16:28:35 +0100241 set_::name >> space_separator > leafPath > space_separator > leaf_data;
Václav Kubernátb61336d2018-05-28 17:35:03 +0200242
Václav Kubernát812ee282018-08-30 17:10:03 +0200243auto const commit_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100244 commit_::name >> x3::attr(commit_());
Václav Kubernát812ee282018-08-30 17:10:03 +0200245
Václav Kubernát6d791432018-10-25 16:00:35 +0200246auto const discard_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100247 discard_::name >> x3::attr(discard_());
Václav Kubernát6d791432018-10-25 16:00:35 +0200248
Václav Kubernát57272422019-02-08 12:48:24 +0100249auto const createCommandSuggestions_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100250 x3::eps;
Václav Kubernát57272422019-02-08 12:48:24 +0100251
Václav Kubernátb61336d2018-05-28 17:35:03 +0200252auto const command_def =
Václav Kubernátbf083ec2019-02-19 13:58:09 +0100253 createCommandSuggestions >> x3::expect[cd | create | delete_rule | set | commit | get | ls | discard];
Václav Kubernát41378452018-06-06 16:29:40 +0200254
255#if __clang__
256#pragma GCC diagnostic pop
257#endif
Václav Kubernátb61336d2018-05-28 17:35:03 +0200258
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200259BOOST_SPIRIT_DEFINE(keyValue)
Václav Kubernát89728d82018-09-13 16:28:28 +0200260BOOST_SPIRIT_DEFINE(key_identifier)
Václav Kubernát744f57f2018-06-29 22:46:26 +0200261BOOST_SPIRIT_DEFINE(node_identifier)
262BOOST_SPIRIT_DEFINE(module_identifier)
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200263BOOST_SPIRIT_DEFINE(listPrefix)
264BOOST_SPIRIT_DEFINE(listSuffix)
265BOOST_SPIRIT_DEFINE(listElement)
Václav Kubernát2eaceb82018-10-08 19:56:30 +0200266BOOST_SPIRIT_DEFINE(list)
Václav Kubernát60d6f292018-05-25 09:45:32 +0200267BOOST_SPIRIT_DEFINE(nodeup)
Václav Kubernát2eaceb82018-10-08 19:56:30 +0200268BOOST_SPIRIT_DEFINE(schemaNode)
269BOOST_SPIRIT_DEFINE(dataNode)
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200270BOOST_SPIRIT_DEFINE(container)
Václav Kubernát07204242018-06-04 18:12:09 +0200271BOOST_SPIRIT_DEFINE(leaf)
Václav Kubernát0b0272f2018-06-13 14:13:08 +0200272BOOST_SPIRIT_DEFINE(leafPath)
Václav Kubernát2eaceb82018-10-08 19:56:30 +0200273BOOST_SPIRIT_DEFINE(schemaPath)
274BOOST_SPIRIT_DEFINE(dataPath)
Václav Kubernát5c75b252018-10-10 18:33:47 +0200275BOOST_SPIRIT_DEFINE(dataNodeList)
276BOOST_SPIRIT_DEFINE(dataNodesListEnd)
277BOOST_SPIRIT_DEFINE(dataPathListEnd)
Václav Kubernát37171a12018-08-31 17:01:48 +0200278BOOST_SPIRIT_DEFINE(absoluteStart)
Václav Kubernátd6fd2492018-11-19 15:11:16 +0100279BOOST_SPIRIT_DEFINE(trailingSlash)
Václav Kubernát744f57f2018-06-29 22:46:26 +0200280BOOST_SPIRIT_DEFINE(module)
Václav Kubernátebca2552018-06-08 19:06:02 +0200281BOOST_SPIRIT_DEFINE(leaf_data)
282BOOST_SPIRIT_DEFINE(leaf_data_enum)
283BOOST_SPIRIT_DEFINE(leaf_data_decimal)
284BOOST_SPIRIT_DEFINE(leaf_data_bool)
285BOOST_SPIRIT_DEFINE(leaf_data_int)
286BOOST_SPIRIT_DEFINE(leaf_data_uint)
287BOOST_SPIRIT_DEFINE(leaf_data_string)
Václav Kubernát4108e0d2018-10-29 13:32:22 +0100288BOOST_SPIRIT_DEFINE(initializePath)
Václav Kubernát07204242018-06-04 18:12:09 +0200289BOOST_SPIRIT_DEFINE(set)
Václav Kubernát812ee282018-08-30 17:10:03 +0200290BOOST_SPIRIT_DEFINE(commit)
Václav Kubernátb6ff0b62018-08-30 16:14:53 +0200291BOOST_SPIRIT_DEFINE(get)
Václav Kubernát11afac72018-07-18 14:59:53 +0200292BOOST_SPIRIT_DEFINE(ls)
Václav Kubernát6d791432018-10-25 16:00:35 +0200293BOOST_SPIRIT_DEFINE(discard)
Václav Kubernát0a2a2e82018-05-11 13:59:12 +0200294BOOST_SPIRIT_DEFINE(cd)
Václav Kubernátb61336d2018-05-28 17:35:03 +0200295BOOST_SPIRIT_DEFINE(create)
296BOOST_SPIRIT_DEFINE(delete_rule)
297BOOST_SPIRIT_DEFINE(command)
Václav Kubernát4108e0d2018-10-29 13:32:22 +0100298BOOST_SPIRIT_DEFINE(createPathSuggestions)
Václav Kubernát329c6c32019-02-06 16:41:53 +0100299BOOST_SPIRIT_DEFINE(createKeySuggestions)
300BOOST_SPIRIT_DEFINE(suggestKeysEnd)
Václav Kubernát57272422019-02-08 12:48:24 +0100301BOOST_SPIRIT_DEFINE(createCommandSuggestions)
Václav Kubernátac035d62019-02-18 10:59:08 +0100302BOOST_SPIRIT_DEFINE(completing)
Václav Kubernát989b5de2019-02-20 16:28:35 +0100303BOOST_SPIRIT_DEFINE(createEnumSuggestions)