printf( "%stext: \"", m_indent.c_str() ); break;
case 60:
printf( "%s<element: \"", m_indent.c_str() ); m_indent += " "; break;
+ case 62:
+ printf( "%s/: \"", m_indent.c_str() ); break;
case 67:
- printf( "%send of element.>\n", m_indent.c_str() ); m_indent = m_indent.substr(2); break;
+ printf( "%send of element.\n>\n", m_indent.c_str() ); m_indent = m_indent.substr(2); break;
case 69:
printf( "%s-> end of empty Tag.\n", m_indent.c_str() ); break;
}
typedef repeat<comment> opt_comments;
- /*class optcomm
- {
- };*/
- //typedef lexical::structure::or< comment, noelems > optcomm;
+ /////
class noelems : public seq<nrqws, optional<comment>, nrqws> {};
// comments
repeat<comment>
-
- /*
- // end when tag start.
- test< not<
- seq<
- lesser, // <
- not<exclamation> // not !
- >
- > >
- */
>
>
> text;
// XML declaration
- /*class header
- {
- };*/
- /*typedef lexical::structure_base<
- seq6<lesser, question, str_xml, attrs, question, greater>
- > header, xmldecl;*/
typedef
seq<question, str_xml, attrs, question>
header_internal, xmldecl_internal;
- /*typedef
- seq<lesser, question, str_xml, attrs, question, greater>
- header, xmldecl;*/
typedef
seq<lesser, header_internal, greater>
header, xmldecl;
-
- /*
- typedef seq3
- <
- noreqws, lt_gt_< or<> >,
- noreqws, lt_gt_< >,
- structure::noelems
- > _structure;
- */
}
////////////////////////////////////////////////////
- /*typedef lexical::structure_base<
- ::roast::lexical::structure::seq3<
- structure::noelems_<structure::header>,
- structure::noelems_<structure::body>,
- structure::noelems
- >
- > _structure;*/
typedef ::roast::lexical::structure::seq
<
structure::noelems_<structure::header>,