Hartmut Kaiser | 25 Feb 00:29

Re: skipper rules silently ignored (spirit2)

Hi,

> Using the latest svn version of spirit2, I have had a small problem
> with the
> skipper rule.
> Since I wanted to use a rule more complexe than space (and that I
> didn't
> have its type):
> 
> charset::space | ('%' >> *~spirit::char_('\n') >> '\n')
> 
> I defined my grammar like this:
> 
> template <typename Iterator>
> struct my_grammar : qi::grammar_def<Iterator, qi::rule<Iterator> >
> {...};
> 
> but doing:
> 
> bool r = phrase_parse(iter, storage.end(), make_parser(def),
> 		charset::space | ('%' >> *~spirit::char_('\n') >> '\n'));
> 
> ignore the skipping rule
> 
> in qi/nonterminal/rule.hpp:170
> 
>   template <typename Iterator_, typename Context, typename Skipper>
>         bool parse(
>             Iterator_& first, Iterator_ const& last
>           , Context& context, Skipper const& skipper) const
(Continue reading)


Gmane