expected_function

Stefan Dyulgerov <[email protected]>
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <[email protected]>
Hello,

does any one know why the expect_function has a member first?

I was trying to see why i do not get on_error<fail> code and it seems, that 
the expect_function class has a logic that prevents some of the exceptions.
Most notably there is a member called first, which eats all the exceptions
in the beginning.

I am trying to parse the word 

imports,

    qi::rule < iterator, std::string(), ascii::space_type >     
m_identifier;
    m_identifier = raw[ lexeme[(alpha | '_') > *( alpha | digit | '_')] ];

imports is parsed
1imports is not parsed, however this code is not called:
boost::throw_exception(Exception(first, last, component.what(context)));

If i comment the logic seems to work fine. I see this is connected with some
multipass parsing, which i do not use.





--
View this message in context: http://boost.2283326.n4.nabble.com/expected-function-tp4685774.html
Sent from the spirit-general mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.