blob: d9964ea405df540860c9bac8d2a8b523bde56fd8 [file] [log] [blame]
Václav Kubernát8cd63422018-03-19 17:10:13 +01001/*
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
10template <typename T, typename Iterator, typename Context>
11inline 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
18template <typename T, typename Iterator, typename Context>
19inline 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
27template <typename T, typename Iterator, typename Context>
28inline 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}