Kristoffer Danielsson wrote:
> const distinct_directive<> keyword_d("0-9a-zA-Z");
> Then I would like to do something like this:
> typedef inhibit_case<strlit<> > token_t;
> token_t ID_ = keyword_d[as_lower_d["id"]];
> Well, that doesn't work.
What happens? I think the typedef is wrong. Here's a trick I use
to get the type of an expression template: I first try to use
an int in the LHS:
int ID_ = some-expression;
surely, it will fail, but the error will reveal the type of the
Also, did you know that you can use BOOST_AUTO with Spirit?
> So how do I mix these two needed directives? I
> want my keywords to be dinstinct, but also case-insensitive. While I'm
> at it, is it possible to make the whole parser case-insensitive?
I would thinks so.
Joel de Guzman