Re: Qi parse retval vs iterators
Richard <[email protected]>
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Organization | multi-cellular, biological |
| Message-ID | <[email protected]> |
In article <CAMEoF_GPuqcUTESbvfyXRJjauohRWB-voNoLf54DdAU9Z58drw@mail.gmail.com>,
Michael Powell <[email protected]> writes:
> Something of a mind bender for me, how is it that qi::parse(...) can
> succeed (return true) and yet the iterator still not reach the end?
Because you might want to do something with the remaining input that
is independent of the grammar?
This is why many of the examples define success as: i) the parser
returned true and ii) the entire input was consumed.
-- Richard
--
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
The Terminals Wiki <http://terminals-wiki.org>
The Computer Graphics Museum <http://ComputerGraphicsMuseum.org>
Legalize Adulthood! (my blog) <http://LegalizeAdulthood.wordpress.com>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot