Opened 13 years ago
Closed 13 years ago
#3099 closed Support Requests (wontfix)
Document that Space skip parser doesn't skip trailing spaces
Reported by: | Owned by: | Joel de Guzman | |
---|---|---|---|
Milestone: | Boost 1.40.0 | Component: | spirit |
Version: | Boost 1.39.0 | Severity: | Problem |
Keywords: | Cc: |
Description
The documentation should mention that the space skip parser does not skip trailing spaces and the examples should be augmented to include the work arounds.
http://svn.boost.org/trac/boost/ticket/3086
#include <cassert> #include <boost/spirit/include/classic.hpp> using namespace BOOST_SPIRIT_CLASSIC_NS; int main() { parse_info<> result = parse(" 5 ", int_p, space_p); assert(result.full); return 0; }
Change History (3)
comment:1 by , 13 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:2 by , 13 years ago
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
Summary: | Space skip parser doesn't skip trailing spaces → Document that Space skip parser doesn't skip trailing spaces |
He isn't asking for it to be fixed, he's asking for it to be documented, as he was advised to do in #3086.
comment:3 by , 13 years ago
Resolution: | → wontfix |
---|---|
Status: | reopened → closed |
We won't go back to this documentation as it refers to an absolutely outdated version. Please switch to the newer versions of Spirit.
Regards Hartmut
Note:
See TracTickets
for help on using tickets.
That's by design. If you need post-skipping you need to modify your grammar (appending eps_p forcing a post_skip to occur):
BTW: in Spirit 2.1 we exposed this as an explicit parameter to parse.
HTH Regards Hartmut