Václav Kubernát | 0a2a2e8 | 2018-05-11 13:59:12 +0200 | [diff] [blame] | 1 | /* |
| 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 |
Václav Kubernát | 195eeea | 2018-05-18 13:52:36 +0200 | [diff] [blame] | 10 | |
Václav Kubernát | 195eeea | 2018-05-18 13:52:36 +0200 | [diff] [blame] | 11 | #include "parser_context.hpp" |
Václav Kubernát | 48fc383 | 2018-05-28 14:21:22 +0200 | [diff] [blame] | 12 | #include "schema.hpp" |
Václav Kubernát | ebca255 | 2018-06-08 19:06:02 +0200 | [diff] [blame^] | 13 | #include "utils.hpp" |
Václav Kubernát | 0a2a2e8 | 2018-05-11 13:59:12 +0200 | [diff] [blame] | 14 | |
Václav Kubernát | 0a2a2e8 | 2018-05-11 13:59:12 +0200 | [diff] [blame] | 15 | struct keyValue_class { |
| 16 | template <typename T, typename Iterator, typename Context> |
| 17 | void on_success(Iterator const&, Iterator const&, T& ast, Context const& context) |
| 18 | { |
| 19 | auto& parserContext = x3::get<parser_context_tag>(context); |
Václav Kubernát | 48fc383 | 2018-05-28 14:21:22 +0200 | [diff] [blame] | 20 | const Schema& schema = parserContext.m_schema; |
Václav Kubernát | 0a2a2e8 | 2018-05-11 13:59:12 +0200 | [diff] [blame] | 21 | |
| 22 | if (parserContext.m_tmpListKeys.find(ast.first) != parserContext.m_tmpListKeys.end()) { |
| 23 | _pass(context) = false; |
| 24 | parserContext.m_errorMsg = "Key \"" + ast.first + "\" was entered more than once."; |
Václav Kubernát | 4137845 | 2018-06-06 16:29:40 +0200 | [diff] [blame] | 25 | } else if (!schema.listHasKey(parserContext.m_curPath, parserContext.m_tmpListName, ast.first)) { |
Václav Kubernát | 0a2a2e8 | 2018-05-11 13:59:12 +0200 | [diff] [blame] | 26 | _pass(context) = false; |
| 27 | parserContext.m_errorMsg = parserContext.m_tmpListName + " is not indexed by \"" + ast.first + "\"."; |
Václav Kubernát | 4137845 | 2018-06-06 16:29:40 +0200 | [diff] [blame] | 28 | } else { |
| 29 | parserContext.m_tmpListKeys.insert(ast.first); |
Václav Kubernát | 0a2a2e8 | 2018-05-11 13:59:12 +0200 | [diff] [blame] | 30 | } |
| 31 | } |
Václav Kubernát | 4137845 | 2018-06-06 16:29:40 +0200 | [diff] [blame] | 32 | |
| 33 | template <typename Iterator, typename Exception, typename Context> |
| 34 | x3::error_handler_result on_error(Iterator&, Iterator const&, Exception const&, Context const& context) |
| 35 | { |
| 36 | auto& parserContext = x3::get<parser_context_tag>(context); |
| 37 | parserContext.m_errorMsg = "Error parsing key values here:"; |
| 38 | return x3::error_handler_result::rethrow; |
| 39 | } |
Václav Kubernát | 0a2a2e8 | 2018-05-11 13:59:12 +0200 | [diff] [blame] | 40 | }; |
Václav Kubernát | 4137845 | 2018-06-06 16:29:40 +0200 | [diff] [blame] | 41 | |
Václav Kubernát | 0a2a2e8 | 2018-05-11 13:59:12 +0200 | [diff] [blame] | 42 | struct identifier_class; |
| 43 | |
| 44 | struct listPrefix_class { |
| 45 | template <typename T, typename Iterator, typename Context> |
| 46 | void on_success(Iterator const&, Iterator const&, T& ast, Context const& context) |
| 47 | { |
| 48 | auto& parserContext = x3::get<parser_context_tag>(context); |
Václav Kubernát | 48fc383 | 2018-05-28 14:21:22 +0200 | [diff] [blame] | 49 | const Schema& schema = parserContext.m_schema; |
Václav Kubernát | 0a2a2e8 | 2018-05-11 13:59:12 +0200 | [diff] [blame] | 50 | |
Václav Kubernát | 48fc383 | 2018-05-28 14:21:22 +0200 | [diff] [blame] | 51 | if (schema.isList(parserContext.m_curPath, ast)) { |
Václav Kubernát | 0a2a2e8 | 2018-05-11 13:59:12 +0200 | [diff] [blame] | 52 | parserContext.m_tmpListName = ast; |
| 53 | } else { |
| 54 | _pass(context) = false; |
| 55 | } |
| 56 | } |
| 57 | }; |
| 58 | |
| 59 | struct listSuffix_class { |
| 60 | template <typename T, typename Iterator, typename Context> |
| 61 | void on_success(Iterator const&, Iterator const&, T& ast, Context const& context) |
| 62 | { |
| 63 | auto& parserContext = x3::get<parser_context_tag>(context); |
Václav Kubernát | 48fc383 | 2018-05-28 14:21:22 +0200 | [diff] [blame] | 64 | const Schema& schema = parserContext.m_schema; |
Václav Kubernát | 0a2a2e8 | 2018-05-11 13:59:12 +0200 | [diff] [blame] | 65 | |
Václav Kubernát | 48fc383 | 2018-05-28 14:21:22 +0200 | [diff] [blame] | 66 | const auto& keysNeeded = schema.listKeys(parserContext.m_curPath, parserContext.m_tmpListName); |
Václav Kubernát | 0a2a2e8 | 2018-05-11 13:59:12 +0200 | [diff] [blame] | 67 | std::set<std::string> keysSupplied; |
| 68 | for (const auto& it : ast) |
| 69 | keysSupplied.insert(it.first); |
| 70 | |
| 71 | if (keysNeeded != keysSupplied) { |
| 72 | parserContext.m_errorMsg = "Not enough keys for " + parserContext.m_tmpListName + ". " + |
| 73 | "These keys were not supplied:"; |
| 74 | std::set<std::string> missingKeys; |
| 75 | std::set_difference(keysNeeded.begin(), keysNeeded.end(), |
| 76 | keysSupplied.begin(), keysSupplied.end(), |
| 77 | std::inserter(missingKeys, missingKeys.end())); |
| 78 | |
| 79 | for (const auto& it : missingKeys) |
| 80 | parserContext.m_errorMsg += " " + it; |
| 81 | parserContext.m_errorMsg += "."; |
| 82 | |
| 83 | _pass(context) = false; |
| 84 | } |
| 85 | } |
Václav Kubernát | 4137845 | 2018-06-06 16:29:40 +0200 | [diff] [blame] | 86 | |
| 87 | template <typename Iterator, typename Exception, typename Context> |
| 88 | x3::error_handler_result on_error(Iterator&, Iterator const&, Exception const&, Context const& context) |
| 89 | { |
| 90 | auto& parserContext = x3::get<parser_context_tag>(context); |
| 91 | if (parserContext.m_errorMsg.empty()) |
| 92 | parserContext.m_errorMsg = "Expecting ']' here:"; |
| 93 | return x3::error_handler_result::rethrow; |
Václav Kubernát | 4137845 | 2018-06-06 16:29:40 +0200 | [diff] [blame] | 94 | } |
Václav Kubernát | 0a2a2e8 | 2018-05-11 13:59:12 +0200 | [diff] [blame] | 95 | }; |
| 96 | struct listElement_class { |
| 97 | template <typename T, typename Iterator, typename Context> |
| 98 | void on_success(Iterator const&, Iterator const&, T& ast, Context const& context) |
| 99 | { |
| 100 | auto& parserContext = x3::get<parser_context_tag>(context); |
Václav Kubernát | 814fa41 | 2018-05-25 19:47:18 +0200 | [diff] [blame] | 101 | parserContext.m_curPath.m_nodes.push_back(ast); |
Václav Kubernát | 0a2a2e8 | 2018-05-11 13:59:12 +0200 | [diff] [blame] | 102 | } |
| 103 | |
| 104 | template <typename Iterator, typename Exception, typename Context> |
Václav Kubernát | 4137845 | 2018-06-06 16:29:40 +0200 | [diff] [blame] | 105 | x3::error_handler_result on_error(Iterator&, Iterator const&, Exception const&, Context const& context) |
Václav Kubernát | 0a2a2e8 | 2018-05-11 13:59:12 +0200 | [diff] [blame] | 106 | { |
| 107 | auto& parserContext = x3::get<parser_context_tag>(context); |
Václav Kubernát | 4137845 | 2018-06-06 16:29:40 +0200 | [diff] [blame] | 108 | if (parserContext.m_errorMsg.empty()) { |
Václav Kubernát | 0a2a2e8 | 2018-05-11 13:59:12 +0200 | [diff] [blame] | 109 | return x3::error_handler_result::fail; |
Václav Kubernát | 4137845 | 2018-06-06 16:29:40 +0200 | [diff] [blame] | 110 | } else { |
| 111 | return x3::error_handler_result::rethrow; |
| 112 | } |
Václav Kubernát | 0a2a2e8 | 2018-05-11 13:59:12 +0200 | [diff] [blame] | 113 | } |
| 114 | }; |
| 115 | |
Václav Kubernát | 60d6f29 | 2018-05-25 09:45:32 +0200 | [diff] [blame] | 116 | struct nodeup_class { |
| 117 | template <typename T, typename Iterator, typename Context> |
| 118 | void on_success(Iterator const&, Iterator const&, T&, Context const& context) |
| 119 | { |
| 120 | auto& parserContext = x3::get<parser_context_tag>(context); |
| 121 | |
Václav Kubernát | 814fa41 | 2018-05-25 19:47:18 +0200 | [diff] [blame] | 122 | if (!parserContext.m_curPath.m_nodes.empty()) { |
| 123 | parserContext.m_curPath.m_nodes.pop_back(); |
Václav Kubernát | 60d6f29 | 2018-05-25 09:45:32 +0200 | [diff] [blame] | 124 | } else { |
| 125 | _pass(context) = false; |
| 126 | } |
Václav Kubernát | 60d6f29 | 2018-05-25 09:45:32 +0200 | [diff] [blame] | 127 | } |
| 128 | }; |
| 129 | |
Václav Kubernát | 0a2a2e8 | 2018-05-11 13:59:12 +0200 | [diff] [blame] | 130 | struct container_class { |
| 131 | template <typename T, typename Iterator, typename Context> |
| 132 | void on_success(Iterator const&, Iterator const&, T& ast, Context const& context) |
| 133 | { |
| 134 | auto& parserContext = x3::get<parser_context_tag>(context); |
Václav Kubernát | 48fc383 | 2018-05-28 14:21:22 +0200 | [diff] [blame] | 135 | const auto& schema = parserContext.m_schema; |
Václav Kubernát | 0a2a2e8 | 2018-05-11 13:59:12 +0200 | [diff] [blame] | 136 | |
Václav Kubernát | 48fc383 | 2018-05-28 14:21:22 +0200 | [diff] [blame] | 137 | if (schema.isContainer(parserContext.m_curPath, ast.m_name)) { |
Václav Kubernát | 814fa41 | 2018-05-25 19:47:18 +0200 | [diff] [blame] | 138 | parserContext.m_curPath.m_nodes.push_back(ast); |
Václav Kubernát | 0a2a2e8 | 2018-05-11 13:59:12 +0200 | [diff] [blame] | 139 | } else { |
| 140 | _pass(context) = false; |
| 141 | } |
| 142 | } |
| 143 | }; |
| 144 | |
Václav Kubernát | 0720424 | 2018-06-04 18:12:09 +0200 | [diff] [blame] | 145 | struct leaf_class { |
| 146 | template <typename T, typename Iterator, typename Context> |
| 147 | void on_success(Iterator const&, Iterator const&, T& ast, Context const& context) |
| 148 | { |
| 149 | auto& parserContext = x3::get<parser_context_tag>(context); |
| 150 | const auto& schema = parserContext.m_schema; |
| 151 | |
| 152 | if (schema.isLeaf(parserContext.m_curPath, ast.m_name)) { |
| 153 | parserContext.m_curPath.m_nodes.push_back(ast); |
| 154 | } else { |
| 155 | _pass(context) = false; |
| 156 | } |
| 157 | } |
| 158 | }; |
| 159 | |
Václav Kubernát | 0a2a2e8 | 2018-05-11 13:59:12 +0200 | [diff] [blame] | 160 | struct path_class { |
| 161 | template <typename T, typename Iterator, typename Context> |
| 162 | void on_success(Iterator const&, Iterator const&, T&, Context const&) |
| 163 | { |
| 164 | } |
Václav Kubernát | 0720424 | 2018-06-04 18:12:09 +0200 | [diff] [blame] | 165 | |
| 166 | template <typename Iterator, typename Exception, typename Context> |
Václav Kubernát | 4137845 | 2018-06-06 16:29:40 +0200 | [diff] [blame] | 167 | x3::error_handler_result on_error(Iterator&, Iterator const&, Exception const&, Context const& context) |
Václav Kubernát | 0720424 | 2018-06-04 18:12:09 +0200 | [diff] [blame] | 168 | { |
| 169 | auto& parserContext = x3::get<parser_context_tag>(context); |
Václav Kubernát | 4137845 | 2018-06-06 16:29:40 +0200 | [diff] [blame] | 170 | if (parserContext.m_errorMsg.empty()) { |
| 171 | parserContext.m_errorMsg = "Expected path."; |
Václav Kubernát | 0720424 | 2018-06-04 18:12:09 +0200 | [diff] [blame] | 172 | return x3::error_handler_result::fail; |
Václav Kubernát | 4137845 | 2018-06-06 16:29:40 +0200 | [diff] [blame] | 173 | } else { |
| 174 | return x3::error_handler_result::rethrow; |
| 175 | } |
Václav Kubernát | 0720424 | 2018-06-04 18:12:09 +0200 | [diff] [blame] | 176 | } |
| 177 | }; |
| 178 | |
Václav Kubernát | 0a2a2e8 | 2018-05-11 13:59:12 +0200 | [diff] [blame] | 179 | struct cd_class { |
| 180 | template <typename T, typename Iterator, typename Context> |
| 181 | void on_success(Iterator const&, Iterator const&, T&, Context const&) |
| 182 | { |
| 183 | } |
| 184 | |
| 185 | template <typename Iterator, typename Exception, typename Context> |
| 186 | x3::error_handler_result on_error(Iterator&, Iterator const&, Exception const& x, Context const& context) |
| 187 | { |
| 188 | auto& parserContext = x3::get<parser_context_tag>(context); |
Václav Kubernát | 4137845 | 2018-06-06 16:29:40 +0200 | [diff] [blame] | 189 | if (parserContext.m_errorMsg.empty()) |
| 190 | parserContext.m_errorMsg = "Expected " + x.which() + " here:"; |
| 191 | return x3::error_handler_result::rethrow; |
Václav Kubernát | 0a2a2e8 | 2018-05-11 13:59:12 +0200 | [diff] [blame] | 192 | } |
| 193 | }; |
Václav Kubernát | b61336d | 2018-05-28 17:35:03 +0200 | [diff] [blame] | 194 | |
| 195 | struct presenceContainerPathHandler { |
| 196 | template <typename T, typename Iterator, typename Context> |
| 197 | void on_success(Iterator const&, Iterator const&, T& ast, Context const& context) |
| 198 | { |
| 199 | auto& parserContext = x3::get<parser_context_tag>(context); |
| 200 | const auto& schema = parserContext.m_schema; |
| 201 | try { |
| 202 | container_ cont = boost::get<container_>(ast.m_path.m_nodes.back()); |
Václav Kubernát | ebca255 | 2018-06-08 19:06:02 +0200 | [diff] [blame^] | 203 | path_ location = pathWithoutLastNode(parserContext.m_curPath); |
Václav Kubernát | b61336d | 2018-05-28 17:35:03 +0200 | [diff] [blame] | 204 | |
| 205 | if (!schema.isPresenceContainer(location, cont.m_name)) { |
Václav Kubernát | 4137845 | 2018-06-06 16:29:40 +0200 | [diff] [blame] | 206 | parserContext.m_errorMsg = "This container is not a presence container."; |
Václav Kubernát | b61336d | 2018-05-28 17:35:03 +0200 | [diff] [blame] | 207 | _pass(context) = false; |
Václav Kubernát | b61336d | 2018-05-28 17:35:03 +0200 | [diff] [blame] | 208 | } |
| 209 | } catch (boost::bad_get&) { |
Václav Kubernát | 4137845 | 2018-06-06 16:29:40 +0200 | [diff] [blame] | 210 | parserContext.m_errorMsg = "This is not a container."; |
Václav Kubernát | b61336d | 2018-05-28 17:35:03 +0200 | [diff] [blame] | 211 | _pass(context) = false; |
Václav Kubernát | b61336d | 2018-05-28 17:35:03 +0200 | [diff] [blame] | 212 | } |
| 213 | } |
| 214 | |
| 215 | template <typename Iterator, typename Exception, typename Context> |
Václav Kubernát | 4137845 | 2018-06-06 16:29:40 +0200 | [diff] [blame] | 216 | x3::error_handler_result on_error(Iterator&, Iterator const&, Exception const&, Context const& context) |
Václav Kubernát | b61336d | 2018-05-28 17:35:03 +0200 | [diff] [blame] | 217 | { |
| 218 | auto& parserContext = x3::get<parser_context_tag>(context); |
Václav Kubernát | 4137845 | 2018-06-06 16:29:40 +0200 | [diff] [blame] | 219 | if (parserContext.m_errorMsg.empty()) |
| 220 | parserContext.m_errorMsg = "Couldn't parse create/delete command."; |
| 221 | return x3::error_handler_result::rethrow; |
Václav Kubernát | b61336d | 2018-05-28 17:35:03 +0200 | [diff] [blame] | 222 | } |
| 223 | }; |
| 224 | |
| 225 | struct create_class : public presenceContainerPathHandler { |
| 226 | }; |
| 227 | |
| 228 | struct delete_class : public presenceContainerPathHandler { |
| 229 | }; |
| 230 | |
Václav Kubernát | ebca255 | 2018-06-08 19:06:02 +0200 | [diff] [blame^] | 231 | struct leaf_data_class { |
| 232 | }; |
| 233 | |
| 234 | struct leaf_data_base_class { |
| 235 | yang::LeafDataTypes m_type; |
| 236 | |
| 237 | leaf_data_base_class(yang::LeafDataTypes type) |
| 238 | : m_type(type) |
| 239 | { |
| 240 | } |
| 241 | |
| 242 | template <typename T, typename Iterator, typename Context> |
| 243 | void on_success(Iterator const&, Iterator const&, T&, Context const& context) |
| 244 | { |
| 245 | auto& parserContext = x3::get<parser_context_tag>(context); |
| 246 | auto& schema = parserContext.m_schema; |
| 247 | |
| 248 | leaf_ leaf = boost::get<leaf_>(parserContext.m_curPath.m_nodes.back()); |
| 249 | path_ location = pathWithoutLastNode(parserContext.m_curPath); |
| 250 | |
| 251 | if (schema.leafType(location, leaf.m_name) != m_type) { |
| 252 | _pass(context) = false; |
| 253 | } |
| 254 | } |
| 255 | }; |
| 256 | |
| 257 | struct leaf_data_enum_class : leaf_data_base_class { |
| 258 | leaf_data_enum_class() |
| 259 | : leaf_data_base_class(yang::LeafDataTypes::Enum) |
| 260 | { |
| 261 | } |
| 262 | |
| 263 | template <typename T, typename Iterator, typename Context> |
| 264 | void on_success(Iterator const& start, Iterator const& end, T& ast, Context const& context) |
| 265 | { |
| 266 | leaf_data_base_class::on_success(start, end, ast, context); |
| 267 | auto& parserContext = x3::get<parser_context_tag>(context); |
| 268 | auto& schema = parserContext.m_schema; |
| 269 | |
| 270 | leaf_ leaf = boost::get<leaf_>(parserContext.m_curPath.m_nodes.back()); |
| 271 | path_ location = pathWithoutLastNode(parserContext.m_curPath); |
| 272 | |
| 273 | if (!schema.leafEnumHasValue(location, leaf.m_name, ast.m_value)) { |
| 274 | _pass(context) = false; |
| 275 | } |
| 276 | } |
| 277 | }; |
| 278 | |
| 279 | struct leaf_data_decimal_class : leaf_data_base_class { |
| 280 | leaf_data_decimal_class() |
| 281 | : leaf_data_base_class(yang::LeafDataTypes::Decimal) |
| 282 | { |
| 283 | } |
| 284 | }; |
| 285 | |
| 286 | struct leaf_data_bool_class : leaf_data_base_class { |
| 287 | leaf_data_bool_class() |
| 288 | : leaf_data_base_class(yang::LeafDataTypes::Bool) |
| 289 | { |
| 290 | } |
| 291 | }; |
| 292 | |
| 293 | struct leaf_data_int_class : leaf_data_base_class { |
| 294 | leaf_data_int_class() |
| 295 | : leaf_data_base_class(yang::LeafDataTypes::Int) |
| 296 | { |
| 297 | } |
| 298 | }; |
| 299 | |
| 300 | struct leaf_data_uint_class : leaf_data_base_class { |
| 301 | leaf_data_uint_class() |
| 302 | : leaf_data_base_class(yang::LeafDataTypes::Uint) |
| 303 | { |
| 304 | } |
| 305 | }; |
| 306 | |
| 307 | struct leaf_data_string_class : leaf_data_base_class { |
| 308 | leaf_data_string_class() |
| 309 | : leaf_data_base_class(yang::LeafDataTypes::String) |
| 310 | { |
| 311 | } |
| 312 | }; |
| 313 | |
Václav Kubernát | 0720424 | 2018-06-04 18:12:09 +0200 | [diff] [blame] | 314 | struct set_class { |
| 315 | template <typename T, typename Iterator, typename Context> |
| 316 | void on_success(Iterator const&, Iterator const&, T& ast, Context const& context) |
| 317 | { |
Václav Kubernát | 4137845 | 2018-06-06 16:29:40 +0200 | [diff] [blame] | 318 | auto& parserContext = x3::get<parser_context_tag>(context); |
Václav Kubernát | 0720424 | 2018-06-04 18:12:09 +0200 | [diff] [blame] | 319 | try { |
| 320 | auto leaf = boost::get<leaf_>(ast.m_path.m_nodes.back()); |
| 321 | } catch (boost::bad_get&) { |
Václav Kubernát | 4137845 | 2018-06-06 16:29:40 +0200 | [diff] [blame] | 322 | parserContext.m_errorMsg = "This is not a leaf."; |
Václav Kubernát | 0720424 | 2018-06-04 18:12:09 +0200 | [diff] [blame] | 323 | _pass(context) = false; |
Václav Kubernát | 0720424 | 2018-06-04 18:12:09 +0200 | [diff] [blame] | 324 | } |
| 325 | } |
| 326 | |
| 327 | template <typename Iterator, typename Exception, typename Context> |
| 328 | x3::error_handler_result on_error(Iterator&, Iterator const&, Exception const& x, Context const& context) |
| 329 | { |
| 330 | auto& parserContext = x3::get<parser_context_tag>(context); |
Václav Kubernát | 4137845 | 2018-06-06 16:29:40 +0200 | [diff] [blame] | 331 | if (parserContext.m_errorMsg.empty()) |
| 332 | parserContext.m_errorMsg = "Expected " + x.which() + " here:"; |
| 333 | return x3::error_handler_result::rethrow; |
Václav Kubernát | 0720424 | 2018-06-04 18:12:09 +0200 | [diff] [blame] | 334 | } |
| 335 | }; |
| 336 | |
Václav Kubernát | b61336d | 2018-05-28 17:35:03 +0200 | [diff] [blame] | 337 | struct command_class { |
| 338 | template <typename Iterator, typename Exception, typename Context> |
| 339 | x3::error_handler_result on_error(Iterator&, Iterator const&, Exception const& x, Context const& context) |
| 340 | { |
| 341 | auto& parserContext = x3::get<parser_context_tag>(context); |
| 342 | auto& error_handler = x3::get<x3::error_handler_tag>(context).get(); |
Václav Kubernát | 4137845 | 2018-06-06 16:29:40 +0200 | [diff] [blame] | 343 | if (parserContext.m_errorMsg.empty()) { |
| 344 | parserContext.m_errorMsg = "Unknown command."; |
| 345 | } |
| 346 | error_handler(x.where(), parserContext.m_errorMsg); |
Václav Kubernát | b61336d | 2018-05-28 17:35:03 +0200 | [diff] [blame] | 347 | return x3::error_handler_result::fail; |
| 348 | } |
| 349 | }; |