Exemplo n.º 1
0
bool generate_json (parse_tree const& in,
                    std::basic_ostream<Char>& out)
{
    json_printer<std::basic_ostream<Char> > print(out, in.annotations());
    print(in.ast());
    return true; 
}
Exemplo n.º 2
0
bool generate_mss_dot( parse_tree const& in,
                   std::basic_ostream<Char>& out)
{
    mss_dot_printer<std::basic_ostream<Char> > printer(out, in.annotations());
    printer.print(in.ast());
    
    return true; 
}
Exemplo n.º 3
0
bool generate_json (parse_tree const& in,
                    std::basic_string<Char>& out)
{
    std::basic_stringstream<Char> oss;
    json_printer<std::basic_stringstream<Char> > print(oss, in.annotations());
    print(in.ast());
    out = oss.str();
    return true; 
}