Boost logo

Boost :

From: joel de guzman (isis-tech_at_[hidden])
Date: 2001-06-01 12:22:31


From: <Bruce.Florman_at_[hidden]>:

> > The advantage is that we can add facilities into the
> > semantic action syntax later (e.g. add attributes or other
> > lazy functional tricks or a complete expression template
> > semantic action framework) and still maintain a clear
> > separation of concerns (semantics related elements and
> > possibly expressions are clearly separated inside the braces.
> >
> > (I'm glad we did not commit the [] brackets for iteration :-)
>
> Um ... okay. The index operator needs to be a member function
> though, right? So this is going to be a member of the Parser
> class template, or something else? If it's Parser, then how will
> this interact with the directive classes, which are themselves
> derived from Parser?
>

No directives are not parsers. Directives create parsers.
Lexeme, for example, is not a parser. It is a meta-program
that creates a parser. Lexeme creates a Contiguous object.
Contiguous is a parser.

Joel de Guzman

PS> I'll reply tomorrow to the other issues.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk