_null = 0,
null = 0,
+ xml_start,
+
// XML declaration
start_xml_declaration,
end_xml_declaration,
send_normal_event<evtcode::end_comment>
> comment_str;
- typedef seq<
- lesser, exclamation, // <!
+ typedef angle_bracket<seq<
+ exclamation, // !
false_ret_to_event<seq<hyphen, hyphen>, // --
error_event<evtcode::invalid_comment_start> >,
/* false_ret_to_event<comment_str,
error_event<evtcode::illegal_term_in_comment> >,*/
- skip<2>, //hyphen, hyphen // --
- _debug_point,
- false_ret_to_event<greater, // >
- error_event<evtcode::invalid_comment_end> >
- > comment;
+ skip<2> //hyphen, hyphen // --
+ > > comment;
//typedef opt_repeat<comment> opt_comments;
lcnoreqws,
equal, // =
lcnoreqws,
+ dblquote,
// Attribute Value
attr_value
typedef angle_bracket<
seq< not< slash >, element_impl, send_normal_event<evtcode::end_element> >
> element;
- typedef element body;
-
- typedef angle_bracket<seq<
- not<slash>,
- element_impl,
- send_normal_event<evtcode::end_element>
- > > element;
typedef element root_element;
class element_
////
// XML Document Rule
- typedef ::roast::lexical::rule::seq
- <
+ typedef seq<
+ send_normal_event<evtcode::xml_start>,
+
comments_and_whitespaces, // Comments and Whitespaces
optional<seq<
header, // XML Header
comments_and_whitespaces// Comments and Whitespaces
> >,
- root_element, // XML Body
+ root_element, // Root Element
comments_and_whitespaces, // Comments and Whitespaces
zeroterm
- > _rule_1;
+ > xml_document_rule;
typedef exception_to_event<
- _rule_1,
+ xml_document_rule,
eoi_exception,
error_event<evtcode::illegal_term>
> _rule;