Boost logo

Boost Users :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2005-05-17 15:23:24


"Hartmut Kaiser" <hartmut.kaiser_at_[hidden]> wrote in message
news:42897ed7.487b86c2.680f.ffffcc97_at_mx.gmail.com...
|
| Thorsten Ottosen wrote:

| > I still can't get it to work. Apparently the template
| > argument for rule is a scanner...so we cannot pass an
| > iterator there, right?
| >
| > This should be a pretty simple thing...what should I do to
| > fix the example?
|
| Doh! You are right, that's my fault, sorry.
|
| I never use rule's with Spirits's API functions (probably for this reason).
| I'd suggest to don't use it either. The better way is to switch to grammar's
| these are scanner agnostic.
|
| But for the curious souls out there here is the way to write it with rule's
| (for the default use case):
|
| rule<scanner<std::string::iterator, scanner_policies<> > > r = ...;

I'm using grammars now. Thanks.

-Thorsten


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