Permalink
Browse files

Fix a typo

  • Loading branch information...
alexp-sssup committed Apr 27, 2011
1 parent 07ec15f commit 1806dce7147d61d97c17f438fa8c628fa32eea4b
Showing with 3 additions and 3 deletions.
  1. +2 −2 parsing/amf3_parser.cpp
  2. +1 −1 parsing/amf3_parser.h
View
@@ -66,13 +66,13 @@ Amf3ParserGrammar::Amf3ParserGrammar() : Amf3ParserGrammar::base_type(entry_rule
( ( qi::eps((_a & 1)==0) >> qi::attr(_a>>1))[_val = _1] | //If it's a reference stop here
( qi::eps((_a & 1)==1) >> date_time_)); //Read a string
array_stuct_value %= *assoc_value_ >> qi::omit[UTF8_empty_] >> //Get the associative part
array_struct_value %= *assoc_value_ >> qi::omit[UTF8_empty_] >> //Get the associative part
qi::repeat(_r1)[value_type]; //Get the dense part
array_type = qi::omit[qi::byte_(array_marker)] >> //Get the marker
qi::omit[U29_[_a = _1]] >> //Get the reference/value flag into a local variable
( ( qi::eps((_a & 1)==0) >> qi::attr(_a>>1))[_val = _1] | //If it's a reference stop here
( qi::eps((_a & 1)==1)[_a=_a>>1] >> array_stuct_value(_a)[_val = _1]) //Read the array
( qi::eps((_a & 1)==1)[_a=_a>>1] >> array_struct_value(_a)[_val = _1]) //Read the array
);
value_type = undefined_type[_val=_1] | null_type[_val=_1] | false_type[_val=_1] | true_type[_val=_1] | integer_type[_val=_1] |
View
@@ -197,7 +197,7 @@ struct Amf3ParserGrammar : boost::spirit::qi::grammar<char*,std::vector<ValueTyp
boost::spirit::qi::rule<char*,ArrayType(),boost::spirit::qi::locals<uint32_t> > array_type;
boost::spirit::qi::rule<char*,ValueType()> value_type;
boost::spirit::qi::rule<char*,std::vector<ValueType>() > entry_rule;
boost::spirit::qi::rule<char*,Array(uint32_t)> array_stuct_value;
boost::spirit::qi::rule<char*,Array(uint32_t)> array_struct_value;
enum markers_type {
undefined_marker = 0x0,

0 comments on commit 1806dce

Please sign in to comment.