33 std::unique_ptr<NODE> root;
36 root = parse_tree::parse<MARKUP::grammar, MARKUP::NODE, MARKUP::selector>( *
mem_in );
38 root = parse_tree::parse<MARKUP::grammar, MARKUP::NODE, MARKUP::selector>( *
in );
42 catch ( tao::pegtl::parse_error& )
55 if( is_type<MARKUP::subscript>() ) os <<
"SUBSCRIPT";
56 else if( is_type<MARKUP::superscript>() ) os <<
"SUPERSCRIPT";
57 else if( is_type<MARKUP::overbar>() ) os <<
"OVERBAR";
58 else if( is_type<MARKUP::anyString>() ) os <<
"ANYSTRING";
59 else if( is_type<MARKUP::anyStringWithinBraces>() ) os <<
"ANYSTRINGWITHINBRACES";
79 os <<
" \"" << string() <<
"\"";
std::unique_ptr< string_input<> > in
std::unique_ptr< NODE > Parse()
std::unique_ptr< memory_input<> > mem_in
wxString From_UTF8(const char *cstring)
std::string asString() const
wxString asWxString() const
std::string typeString() const