Re: [proto] grammar matching issue

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: [proto] grammar matching issue

Eric Niebler
Eric Niebler wrote:
> Maurizio Vitale wrote:
>> if you could find a way to completely hide the fact that a terminal is
>> a unary_expr from the user I think it would be much cleaner for
>> a boost::proto release.
>
> I now have some ideas about how to add nullary expressions to proto.
> I'll investigate.

Proto terminals are now nullary expressions. The change is that
terminal<int>::type used to be:

   expr<tag::terminal, args1<int>, 1>

and now it is:

   expr<tag::terminal, args0<int>, 0>

Everything else stays pretty much the same. This is a breaking change,
so watch out.

--
Eric Niebler
Boost Consulting
www.boost-consulting.com

The Astoria Seminar ==> http://www.astoriaseminar.com

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Spirit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/spirit-devel