Subject: [Boost-bugs] [Boost C++ Libraries] #3275: Spirit does not skip whitespace between str_p and ch_p
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-07-17 21:39:26
#3275: Spirit does not skip whitespace between str_p and ch_p
------------------------------------+---------------------------------------
Reporter: misterkraus@⦠| Owner: djowel
Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: spirit
Version: Boost 1.38.0 | Severity: Showstopper
Keywords: spirit whitespace skip |
------------------------------------+---------------------------------------
After matching a str_p or ch_p trailing whitespace till the next token is
not skipped.
Tested under VC2008 and macosx gcc 4.0.
Either this is a major bug or i am missing something fundamental.
Example:
{{{
#include <boost/spirit/include/classic_core.hpp>
#include <boost/spirit/include/classic_push_back_actor.hpp>
#include <boost/spirit/include/classic_exceptions.hpp>
#include <boost/spirit/include/classic_confix.hpp>
#include <iostream>
using namespace BOOST_SPIRIT_CLASSIC_NS;
int main(int argc, char* argv[])
{
rule<> fileRule = ch_p('{') >> real_p;
parse_info<> info= parse(" { 3.0",
fileRule,space_p);
if (!info.hit)
{
std::cout<<"ERROR:"<<info.stop<<std::endl;
}
return 0;
}
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3275> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:00 UTC