Boost logo

Boost Users :

Subject: Re: [Boost-users] [Boost.Spirit] Skippers for sub-grammars
From: Bill Somerville (bill_at_[hidden])
Date: 2010-10-22 05:08:37


Vitaly Budovski wrote:
> Hello,
>
> I've decided to break up my parser into sub-grammars to improve both
> the readability and compile time. I'm now trying to specify a skip
> parser for one of the sub-grammars, but I don't know how to do it. I'm
> familiar with specifying a skip parser in the parse functions, but not
> in the grammar itself. Could somebody please provide an example?
> Thanks.
>
I believe you need to make it a template argument and pass it on to each
of the rules in the sub-grammar.

HTH
Bill Somerville.


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