Boost logo

Boost Users :

Subject: Re: [Boost-users] spirit classic - matching end of file space
From: Noah Roberts (roberts.noah_at_[hidden])
Date: 2011-03-07 16:14:05


In article <MPG.27dedca28966f242989692_at_[hidden]>,
roberts.noah_at_[hidden] says...
>

> shape_block = // := <shape_header> "Begin" <element>* "End"
> (shape_header | shapeheader_error)
> >> (as_lower_d["begin"] | begin_error)
> >> *element
> >> as_lower_d["end"]
> ;
>
> I've tried adding '*space_p' at the end of both of the above. I've also
> tried '*lexeme_p[space_p]' in both. Neither fixes the problem.

Fixed it.

shape_block = // := <shape_header> "Begin" <element>* "End"
     (shape_header | shapeheader_error)
>> (as_lower_d["begin"] | begin_error)
>> *element
>> lexeme_d[as_lower_d["end"] >> *space_p]
;

-- 
http://crazycpp.wordpress.com/

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net