Boost logo

Boost Users :

Subject: Re: [Boost-users] [Proto]: How to use complex grammars in a domain/extension
From: Joel Falcou (joel.falcou_at_[hidden])
Date: 2010-09-21 02:54:38


On 20/09/10 22:57, Roland Bock wrote:
> typedef proto::terminal<proto::_>::type terminal;
>
> struct addition:
> proto::or_
> <
> terminal,
> proto::plus<addition, addition>
> >
> {};

terminal is a terminal type, not a terminal grammar:

struct addition :
    proto::or_< proto::terminal<proto::_>
             , proto::plus<addition,addition>
> {};


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