blob: ecd3bd7ab2ff17297bec8020bba46969356bbaa9 [file] [log] [blame]
Václav Kubernátd0ea9b22020-04-24 00:44:15 +02001/*
2 * Copyright (C) 2020 CESNET, https://photonics.cesnet.cz/
3 *
4 * Written by Václav Kubernát <kubernat@cesnet.cz>
5 *
6*/
7
8#pragma once
9
10#include <boost/spirit/home/x3.hpp>
11#include "ast_handlers.hpp"
12#include "common_parsers.hpp"
13#include "leaf_data.hpp"
14
15namespace x3 = boost::spirit::x3;
16
Václav Kubernátabf52802020-05-19 01:31:17 +020017x3::rule<writable_leaf_path_class, dataPath_> const writableLeafPath = "writableLeafPath";
Václav Kubernátd0ea9b22020-04-24 00:44:15 +020018x3::rule<presenceContainerPath_class, dataPath_> const presenceContainerPath = "presenceContainerPath";
19x3::rule<listInstancePath_class, dataPath_> const listInstancePath = "listInstancePath";
Václav Kubernát5b8a8f32020-05-20 00:57:22 +020020x3::rule<leafListElementPath_class, dataPath_> const leafListElementPath = "leafListElementPath";
Václav Kubernátd0ea9b22020-04-24 00:44:15 +020021x3::rule<initializePath_class, x3::unused_type> const initializePath = "initializePath";
Václav Kubernátd0ea9b22020-04-24 00:44:15 +020022x3::rule<trailingSlash_class, TrailingSlash> const trailingSlash = "trailingSlash";
Václav Kubernátd0ea9b22020-04-24 00:44:15 +020023x3::rule<absoluteStart_class, Scope> const absoluteStart = "absoluteStart";
24x3::rule<keyValue_class, keyValue_> const keyValue = "keyValue";
25x3::rule<key_identifier_class, std::string> const key_identifier = "key_identifier";
Václav Kubernátd0ea9b22020-04-24 00:44:15 +020026x3::rule<listSuffix_class, std::vector<keyValue_>> const listSuffix = "listSuffix";
Václav Kubernátd0ea9b22020-04-24 00:44:15 +020027x3::rule<createKeySuggestions_class, x3::unused_type> const createKeySuggestions = "createKeySuggestions";
28x3::rule<createValueSuggestions_class, x3::unused_type> const createValueSuggestions = "createValueSuggestions";
29x3::rule<suggestKeysEnd_class, x3::unused_type> const suggestKeysEnd = "suggestKeysEnd";
Václav Kubernát5b8a8f32020-05-20 00:57:22 +020030x3::rule<class leafListValue_class, leaf_data_> const leafListValue = "leafListValue";
Václav Kubernátd0ea9b22020-04-24 00:44:15 +020031
Václav Kubernát4a58ce62020-05-14 17:58:10 +020032enum class NodeParserMode {
33 CompleteDataNode,
34 IncompleteDataNode,
35 CompletionsOnly,
36 SchemaNode
37};
38
39template <auto>
40struct ModeToAttribute;
41template <>
42struct ModeToAttribute<NodeParserMode::CompleteDataNode> {
43 using type = dataNode_;
44};
45template <>
46struct ModeToAttribute<NodeParserMode::IncompleteDataNode> {
47 using type = dataNode_;
48};
49template <>
50struct ModeToAttribute<NodeParserMode::SchemaNode> {
51 using type = schemaNode_;
52};
53// The CompletionsOnly attribute is dataNode_ only because of convenience:
54// having the same return type means we can get by without a ton of `if constexpr` stanzas.
55// So the code will still "parse data into the target attr" for simplicity.
56template <>
57struct ModeToAttribute<NodeParserMode::CompletionsOnly> {
58 using type = dataNode_;
59};
60
Václav Kubernát5b8a8f32020-05-20 00:57:22 +020061
Václav Kubernát4a58ce62020-05-14 17:58:10 +020062template <NodeParserMode PARSER_MODE>
63struct NodeParser : x3::parser<NodeParser<PARSER_MODE>> {
64 using attribute_type = typename ModeToAttribute<PARSER_MODE>::type;
Václav Kubernátabf52802020-05-19 01:31:17 +020065
66 std::function<bool(const Schema&, const std::string& path)> m_filterFunction;
67
68 NodeParser(const std::function<bool(const Schema&, const std::string& path)>& filterFunction)
69 : m_filterFunction(filterFunction)
70 {
71 }
72
Václav Kubernát4a58ce62020-05-14 17:58:10 +020073 // GCC complains that `end` isn't used when doing completions only
74 // FIXME: GCC 10.1 doesn't emit a warning here. Remove [[maybe_unused]] when GCC 10 is available
Václav Kubernát60a0ed52020-04-28 15:21:33 +020075 template <typename It, typename Ctx, typename RCtx, typename Attr>
Václav Kubernát4a58ce62020-05-14 17:58:10 +020076 bool parse(It& begin, [[maybe_unused]] It end, Ctx const& ctx, RCtx& rctx, Attr& attr) const
Václav Kubernát60a0ed52020-04-28 15:21:33 +020077 {
Václav Kubernátdd5945a2020-05-05 01:24:23 +020078 std::string tableName;
Václav Kubernát4a58ce62020-05-14 17:58:10 +020079 if constexpr (std::is_same<attribute_type, schemaNode_>()) {
Václav Kubernátdd5945a2020-05-05 01:24:23 +020080 tableName = "schemaNode";
81 } else {
82 tableName = "dataNode";
83 }
Václav Kubernát4a58ce62020-05-14 17:58:10 +020084 x3::symbols<attribute_type> table(tableName);
Václav Kubernát60a0ed52020-04-28 15:21:33 +020085
86 ParserContext& parserContext = x3::get<parser_context_tag>(ctx);
87 parserContext.m_suggestions.clear();
88 for (const auto& child : parserContext.m_schema.availableNodes(parserContext.currentSchemaPath(), Recursion::NonRecursive)) {
Václav Kubernát4a58ce62020-05-14 17:58:10 +020089 attribute_type out;
Václav Kubernát60a0ed52020-04-28 15:21:33 +020090 std::string parseString;
91 if (child.first) {
92 out.m_prefix = module_{*child.first};
93 parseString = *child.first + ":";
94 }
95 parseString += child.second;
Václav Kubernátabf52802020-05-19 01:31:17 +020096
97 if (!m_filterFunction(parserContext.m_schema, joinPaths(pathToSchemaString(parserContext.currentSchemaPath(), Prefixes::Always), parseString))) {
98 continue;
99 }
100
Václav Kubernát60a0ed52020-04-28 15:21:33 +0200101 switch (parserContext.m_schema.nodeType(parserContext.currentSchemaPath(), child)) {
102 case yang::NodeTypes::Container:
103 case yang::NodeTypes::PresenceContainer:
104 out.m_suffix = container_{child.second};
105 parserContext.m_suggestions.emplace(Completion{parseString + "/"});
106 break;
107 case yang::NodeTypes::Leaf:
108 out.m_suffix = leaf_{child.second};
109 parserContext.m_suggestions.emplace(Completion{parseString + " "});
110 break;
111 case yang::NodeTypes::List:
Václav Kubernát4a58ce62020-05-14 17:58:10 +0200112 if constexpr (std::is_same<attribute_type, schemaNode_>()) {
Václav Kubernátdd5945a2020-05-05 01:24:23 +0200113 out.m_suffix = list_{child.second};
114 } else {
115 out.m_suffix = listElement_{child.second, {}};
116 }
Václav Kubernát60a0ed52020-04-28 15:21:33 +0200117 parserContext.m_suggestions.emplace(Completion{parseString, "[", Completion::WhenToAdd::IfFullMatch});
118 break;
Václav Kubernát5b8a8f32020-05-20 00:57:22 +0200119 case yang::NodeTypes::LeafList:
120 if constexpr (std::is_same<attribute_type, schemaNode_>()) {
121 out.m_suffix = leafList_{child.second};
122 } else {
123 out.m_suffix = leafListElement_{child.second, {}};
124 }
125 parserContext.m_suggestions.emplace(Completion{parseString, "[", Completion::WhenToAdd::IfFullMatch});
126 break;
Václav Kubernát60a0ed52020-04-28 15:21:33 +0200127 case yang::NodeTypes::Action:
128 case yang::NodeTypes::AnyXml:
Václav Kubernát60a0ed52020-04-28 15:21:33 +0200129 case yang::NodeTypes::Notification:
130 case yang::NodeTypes::Rpc:
131 continue;
132 }
133 table.add(parseString, out);
Václav Kubernát4a58ce62020-05-14 17:58:10 +0200134 table.add("..", attribute_type{nodeup_{}});
Václav Kubernát60a0ed52020-04-28 15:21:33 +0200135 if (!child.first) {
136 auto topLevelModule = parserContext.currentSchemaPath().m_nodes.begin()->m_prefix;
137 out.m_prefix = topLevelModule;
138 table.add(topLevelModule->m_name + ":" + parseString, out);
139 }
140 }
Václav Kubernátdd5945a2020-05-05 01:24:23 +0200141 parserContext.m_completionIterator = begin;
Václav Kubernátdd5945a2020-05-05 01:24:23 +0200142
Václav Kubernát4a58ce62020-05-14 17:58:10 +0200143 if constexpr (PARSER_MODE == NodeParserMode::CompletionsOnly) {
144 return true;
145 } else {
146 It saveIter;
147 // GCC complains that I assign saveIter because I use it only if NodeType is dataNode_
148 // FIXME: GCC 10.1 doesn't emit a warning here. Make this unconditional when GCC 10 is available.
149 if constexpr (std::is_same<attribute_type, dataNode_>()) {
150 saveIter = begin;
Václav Kubernátdd5945a2020-05-05 01:24:23 +0200151 }
Václav Kubernátdd5945a2020-05-05 01:24:23 +0200152
Václav Kubernát4a58ce62020-05-14 17:58:10 +0200153 auto res = table.parse(begin, end, ctx, rctx, attr);
Václav Kubernátdd5945a2020-05-05 01:24:23 +0200154
Václav Kubernát4a58ce62020-05-14 17:58:10 +0200155 if (attr.m_prefix) {
156 parserContext.m_curModule = attr.m_prefix->m_name;
157 }
158
159 if (attr.m_suffix.type() == typeid(leaf_)) {
160 parserContext.m_tmpListKeyLeafPath.m_location = parserContext.currentSchemaPath();
161 ModuleNodePair node{attr.m_prefix.flat_map([](const auto& it) {
162 return boost::optional<std::string>{it.m_name};
163 }),
164 boost::get<leaf_>(attr.m_suffix).m_name};
165 parserContext.m_tmpListKeyLeafPath.m_node = node;
166 }
167
168 if constexpr (std::is_same<attribute_type, dataNode_>()) {
169 if (attr.m_suffix.type() == typeid(listElement_)) {
170 parserContext.m_tmpListName = boost::get<listElement_>(attr.m_suffix).m_name;
171 res = listSuffix.parse(begin, end, ctx, rctx, boost::get<listElement_>(attr.m_suffix).m_keys);
172
173 // FIXME: think of a better way to do this, that is, get rid of manual iterator reverting
174 if (!res) {
175 // If listSuffix didn't succeed, we check, if we allow incomplete nodes. If we do, then we replace listElement_ with list_.
176 // If we don't, we fail the whole symbol table.
177 if constexpr (PARSER_MODE == NodeParserMode::IncompleteDataNode) {
178 res = true;
179 attr.m_suffix = list_{boost::get<listElement_>(attr.m_suffix).m_name};
180 } else {
181 begin = saveIter;
182 }
183 }
184 }
Václav Kubernát5b8a8f32020-05-20 00:57:22 +0200185
186 if (attr.m_suffix.type() == typeid(leafListElement_)) {
187 parserContext.m_tmpListKeyLeafPath.m_location = parserContext.currentSchemaPath();
188 ModuleNodePair node{attr.m_prefix.flat_map([](const auto& it) {
189 return boost::optional<std::string>{it.m_name};
190 }),
191 boost::get<leafListElement_>(attr.m_suffix).m_name};
192 parserContext.m_tmpListKeyLeafPath.m_node = node;
193 res = leafListValue.parse(begin, end, ctx, rctx, boost::get<leafListElement_>(attr.m_suffix).m_value);
194
195 if (!res) {
196 if constexpr (PARSER_MODE == NodeParserMode::IncompleteDataNode) {
197 res = true;
198 attr.m_suffix = leafList_{boost::get<leafListElement_>(attr.m_suffix).m_name};
199 } else {
200 begin = saveIter;
201 }
202 }
203 }
Václav Kubernát4a58ce62020-05-14 17:58:10 +0200204 }
205
206 if (res) {
207 parserContext.pushPathFragment(attr);
208 parserContext.m_topLevelModulePresent = true;
209 }
210
211 if (attr.m_prefix) {
212 parserContext.m_curModule = boost::none;
213 }
214 return res;
Václav Kubernát60a0ed52020-04-28 15:21:33 +0200215 }
Václav Kubernát60a0ed52020-04-28 15:21:33 +0200216 }
Václav Kubernátdd5945a2020-05-05 01:24:23 +0200217};
218
Václav Kubernátabf52802020-05-19 01:31:17 +0200219using schemaNode = NodeParser<NodeParserMode::SchemaNode>;
220using dataNode = NodeParser<NodeParserMode::CompleteDataNode>;
Václav Kubernát5b8a8f32020-05-20 00:57:22 +0200221using incompleteDataNode = NodeParser<NodeParserMode::IncompleteDataNode>;
Václav Kubernátabf52802020-05-19 01:31:17 +0200222using pathCompletions = NodeParser<NodeParserMode::CompletionsOnly>;
Václav Kubernát60a0ed52020-04-28 15:21:33 +0200223
Václav Kubernát4618fa42020-05-07 01:33:19 +0200224using AnyPath = boost::variant<schemaPath_, dataPath_>;
225
Václav Kubernát4a58ce62020-05-14 17:58:10 +0200226enum class PathParserMode {
227 AnyPath,
228 DataPath,
229 DataPathListEnd
230};
231
232template <>
233struct ModeToAttribute<PathParserMode::AnyPath> {
234 using type = AnyPath;
235};
236
237template <>
238struct ModeToAttribute<PathParserMode::DataPath> {
239 using type = dataPath_;
240};
241
242template <>
243struct ModeToAttribute<PathParserMode::DataPathListEnd> {
244 using type = dataPath_;
245};
246
247template <PathParserMode PARSER_MODE>
248struct PathParser : x3::parser<PathParser<PARSER_MODE>> {
249 using attribute_type = ModeToAttribute<PARSER_MODE>;
Václav Kubernátabf52802020-05-19 01:31:17 +0200250 std::function<bool(const Schema&, const std::string& path)> m_filterFunction;
251
252 PathParser(const std::function<bool(const Schema&, const std::string& path)>& filterFunction = [] (const auto&, const auto&) {return true;})
253 : m_filterFunction(filterFunction)
254 {
255 }
256
Václav Kubernát4618fa42020-05-07 01:33:19 +0200257 template <typename It, typename Ctx, typename RCtx, typename Attr>
258 bool parse(It& begin, It end, Ctx const& ctx, RCtx& rctx, Attr& attr) const
259 {
Václav Kubernát74d35a42020-05-15 15:29:16 +0200260 initializePath.parse(begin, end, ctx, rctx, x3::unused);
Václav Kubernát4618fa42020-05-07 01:33:19 +0200261 dataPath_ attrData;
262
Václav Kubernát4a58ce62020-05-14 17:58:10 +0200263 auto pathEnd = x3::rule<class PathEnd>{"pathEnd"} = &space_separator | x3::eoi;
Václav Kubernát4618fa42020-05-07 01:33:19 +0200264 // absoluteStart has to be separate from the dataPath parser,
265 // otherwise, if the "dataNode % '/'" parser fails, the begin iterator
266 // gets reverted to before the starting slash.
Václav Kubernát4a58ce62020-05-14 17:58:10 +0200267 auto res = (-absoluteStart).parse(begin, end, ctx, rctx, attrData.m_scope);
268 auto dataPath = x3::attr(attrData.m_scope)
Václav Kubernátabf52802020-05-19 01:31:17 +0200269 >> (dataNode{m_filterFunction} % '/' | pathEnd >> x3::attr(std::vector<dataNode_>{}))
Václav Kubernát4a58ce62020-05-14 17:58:10 +0200270 >> -trailingSlash;
Václav Kubernát4618fa42020-05-07 01:33:19 +0200271 res = dataPath.parse(begin, end, ctx, rctx, attrData);
Václav Kubernát4618fa42020-05-07 01:33:19 +0200272
Václav Kubernát4a58ce62020-05-14 17:58:10 +0200273 // If we allow data paths with a list at the end, we just try to parse that separately.
274 if constexpr (PARSER_MODE == PathParserMode::DataPathListEnd || PARSER_MODE == PathParserMode::AnyPath) {
Václav Kubernát4618fa42020-05-07 01:33:19 +0200275 if (!res || !pathEnd.parse(begin, end, ctx, rctx, x3::unused)) {
Václav Kubernát4a58ce62020-05-14 17:58:10 +0200276 dataNode_ attrNodeList;
Václav Kubernát5b8a8f32020-05-20 00:57:22 +0200277 res = incompleteDataNode{m_filterFunction}.parse(begin, end, ctx, rctx, attrNodeList);
Václav Kubernát4a58ce62020-05-14 17:58:10 +0200278 if (res) {
279 attrData.m_nodes.push_back(attrNodeList);
280 // If the trailing slash matches, no more nodes are parsed.
281 // That means no more completion. So, I generate them
282 // manually.
Václav Kubernátabf52802020-05-19 01:31:17 +0200283 res = (-(trailingSlash >> x3::omit[pathCompletions{m_filterFunction}])).parse(begin, end, ctx, rctx, attrData.m_trailingSlash);
Václav Kubernát4a58ce62020-05-14 17:58:10 +0200284 }
285 }
286 }
287
288 attr = attrData;
289 if constexpr (PARSER_MODE == PathParserMode::AnyPath) {
290 // If our data path already has some listElement_ fragments, we can't parse rest of the path as a schema path
291 auto hasLists = std::any_of(attrData.m_nodes.begin(), attrData.m_nodes.end(),
292 [] (const auto& node) { return node.m_suffix.type() == typeid(listElement_); });
293 // If parsing failed, or if there's more input we try parsing schema nodes.
294 if (!hasLists) {
295 if (!res || !pathEnd.parse(begin, end, ctx, rctx, x3::unused)) {
296 // If dataPath parsed some nodes, they will be saved in `attrData`. We have to keep these.
297 schemaPath_ attrSchema = dataPathToSchemaPath(attrData);
Václav Kubernátabf52802020-05-19 01:31:17 +0200298 auto schemaPath = schemaNode{m_filterFunction} % '/';
Václav Kubernát4a58ce62020-05-14 17:58:10 +0200299 // The schemaPath parser continues where the dataPath parser ended.
300 res = schemaPath.parse(begin, end, ctx, rctx, attrSchema.m_nodes);
301 auto trailing = -trailingSlash >> pathEnd;
302 res = trailing.parse(begin, end, ctx, rctx, attrSchema.m_trailingSlash);
303 attr = attrSchema;
304 }
Václav Kubernát4618fa42020-05-07 01:33:19 +0200305 }
306 }
307 return res;
308 }
Václav Kubernát74d35a42020-05-15 15:29:16 +0200309};
Václav Kubernát4618fa42020-05-07 01:33:19 +0200310
311// Need to use these wrappers so that my PathParser class gets the proper
312// attribute. Otherwise, Spirit injects the attribute of the outer parser that
313// uses my PathParser.
314// Example grammar: anyPath | module.
315// The PathParser class would get a boost::variant as the attribute, but I
316// don't want to deal with that, so I use these wrappers to ensure the
Václav Kubernát74d35a42020-05-15 15:29:16 +0200317// attribute I want (and let Spirit deal with boost::variant).
Václav Kubernát4a58ce62020-05-14 17:58:10 +0200318auto const anyPath = x3::rule<class anyPath_class, AnyPath>{"anyPath"} = PathParser<PathParserMode::AnyPath>{};
319auto const dataPath = x3::rule<class dataPath_class, dataPath_>{"dataPath"} = PathParser<PathParserMode::DataPath>{};
320auto const dataPathListEnd = x3::rule<class dataPath_class, dataPath_>{"dataPath"} = PathParser<PathParserMode::DataPathListEnd>{};
Václav Kubernát4618fa42020-05-07 01:33:19 +0200321
Václav Kubernátd0ea9b22020-04-24 00:44:15 +0200322#if __clang__
323#pragma GCC diagnostic push
324#pragma GCC diagnostic ignored "-Woverloaded-shift-op-parentheses"
325#endif
326
Václav Kubernát5b8a8f32020-05-20 00:57:22 +0200327struct SuggestLeafListEnd : x3::parser<SuggestLeafListEnd> {
328 using attribute_type = x3::unused_type;
329 template <typename It, typename Ctx, typename RCtx, typename Attr>
330 bool parse(It& begin, It, Ctx const& ctx, RCtx&, Attr&) const
331 {
332 auto& parserContext = x3::get<parser_context_tag>(ctx);
333 parserContext.m_completionIterator = begin;
334 parserContext.m_suggestions = {Completion{"]"}};
335
336 return true;
337 }
338} const suggestLeafListEnd;
339
340auto const leafListValue_def =
341 '[' >> leaf_data >> suggestLeafListEnd >> ']';
342
Václav Kubernátd0ea9b22020-04-24 00:44:15 +0200343auto const rest =
344 x3::omit[x3::no_skip[+(x3::char_ - '/' - space_separator)]];
345
346auto const key_identifier_def =
347 x3::lexeme[
348 ((x3::alpha | char_("_")) >> *(x3::alnum | char_("_") | char_("-") | char_(".")))
349 ];
350
351auto const createKeySuggestions_def =
352 x3::eps;
353
354auto const createValueSuggestions_def =
355 x3::eps;
356
357auto const suggestKeysEnd_def =
358 x3::eps;
359
360auto const keyValue_def =
361 key_identifier > '=' > createValueSuggestions > leaf_data;
362
363auto const keyValueWrapper =
364 x3::lexeme['[' > createKeySuggestions > keyValue > suggestKeysEnd > ']'];
365
Václav Kubernátd0ea9b22020-04-24 00:44:15 +0200366// even though we don't allow no keys to be supplied, the star allows me to check which keys are missing
367auto const listSuffix_def =
368 *keyValueWrapper;
369
Václav Kubernátd0ea9b22020-04-24 00:44:15 +0200370auto const list_def =
371 node_identifier >> !char_('[');
372
Václav Kubernátd0ea9b22020-04-24 00:44:15 +0200373auto const absoluteStart_def =
374 x3::omit['/'] >> x3::attr(Scope::Absolute);
375
376auto const trailingSlash_def =
377 x3::omit['/'] >> x3::attr(TrailingSlash::Present);
378
Václav Kubernátabf52802020-05-19 01:31:17 +0200379auto const filterConfigFalse = [] (const Schema& schema, const std::string& path) {
380 return schema.isConfig(path);
381};
382
383auto const writableLeafPath_def =
384 PathParser<PathParserMode::DataPath>{filterConfigFalse};
Václav Kubernátd0ea9b22020-04-24 00:44:15 +0200385
386auto const presenceContainerPath_def =
387 dataPath;
388
389auto const listInstancePath_def =
390 dataPath;
391
Václav Kubernát5b8a8f32020-05-20 00:57:22 +0200392auto const leafListElementPath_def =
393 dataPath;
394
Václav Kubernátd0ea9b22020-04-24 00:44:15 +0200395// A "nothing" parser, which is used to indicate we tried to parse a path
396auto const initializePath_def =
397 x3::eps;
398
399
400
401#if __clang__
402#pragma GCC diagnostic pop
403#endif
404
405BOOST_SPIRIT_DEFINE(keyValue)
406BOOST_SPIRIT_DEFINE(key_identifier)
Václav Kubernátd0ea9b22020-04-24 00:44:15 +0200407BOOST_SPIRIT_DEFINE(listSuffix)
Václav Kubernátabf52802020-05-19 01:31:17 +0200408BOOST_SPIRIT_DEFINE(writableLeafPath)
Václav Kubernátd0ea9b22020-04-24 00:44:15 +0200409BOOST_SPIRIT_DEFINE(presenceContainerPath)
410BOOST_SPIRIT_DEFINE(listInstancePath)
Václav Kubernát5b8a8f32020-05-20 00:57:22 +0200411BOOST_SPIRIT_DEFINE(leafListElementPath)
Václav Kubernátd0ea9b22020-04-24 00:44:15 +0200412BOOST_SPIRIT_DEFINE(initializePath)
413BOOST_SPIRIT_DEFINE(createKeySuggestions)
Václav Kubernátd0ea9b22020-04-24 00:44:15 +0200414BOOST_SPIRIT_DEFINE(createValueSuggestions)
415BOOST_SPIRIT_DEFINE(suggestKeysEnd)
Václav Kubernát5b8a8f32020-05-20 00:57:22 +0200416BOOST_SPIRIT_DEFINE(leafListValue)
Václav Kubernátd0ea9b22020-04-24 00:44:15 +0200417BOOST_SPIRIT_DEFINE(absoluteStart)
418BOOST_SPIRIT_DEFINE(trailingSlash)