Boost logo

Boost Users :

From: Joel de Guzman (djowel_at_[hidden])
Date: 2003-08-01 13:20:00


sps22 <sps22_at_[hidden]> wrote:
> That explains it, but not fully. I was using *(anychar_p) just for
> seeing whether my parser gets the two braces or not. When I did:
>
> FILE >> LEFT_BRACE >> RIGHT_BRACE
>
> It did not parse either the input file:
>
> "file { }"

How about:

    FILE >> LEFT_BRACE >> *(anychar_p - RIGHT_BRACE) >> RIGHT_BRACE

Cheers,

-- 
Joel de Guzman
joel at boost-consulting.com
http://www.boost-consulting.com
http://spirit.sf.net

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