Václav Kubernát | 8cd6342 | 2018-03-19 17:10:13 +0100 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (C) 2018 CESNET, https://photonics.cesnet.cz/ |
| 3 | * |
| 4 | * Written by Václav Kubernát <kubervac@fit.cvut.cz> |
| 5 | * |
| 6 | */ |
| 7 | #include "ast.hpp" |
| 8 | |
| 9 | |
| 10 | template <typename T, typename Iterator, typename Context> |
| 11 | inline void container_class::on_success(Iterator const& first, Iterator const& last |
| 12 | , T& ast, Context const& context) |
| 13 | { |
| 14 | ast.m_name = ast.m_first + ast.m_name; |
| 15 | //std::cout <<"parsed " << ast.m_name << "(container)\n"; |
| 16 | } |
| 17 | |
| 18 | template <typename T, typename Iterator, typename Context> |
| 19 | inline void path_class::on_success(Iterator const& first, Iterator const& last |
| 20 | , T& ast, Context const& context) |
| 21 | { |
| 22 | //std::cout << "parsed path:" << std::endl; |
| 23 | //for (auto it : ast.m_nodes) |
| 24 | //std::cout << it.m_name << std::endl; |
| 25 | } |
| 26 | |
| 27 | template <typename T, typename Iterator, typename Context> |
| 28 | inline void cd_class::on_success(Iterator const& first, Iterator const& last |
| 29 | , T& ast, Context const& context) |
| 30 | { |
| 31 | //std::cout << "parsed cd! final path:" << std::endl; |
| 32 | //for (auto it : ast.m_path.m_nodes) |
| 33 | //std::cout << it.m_name << std::endl; |
| 34 | |
| 35 | } |