On 26/02/11 10:50, Eric Niebler wrote:
Sure. This is pretty easy. I suggest you introduce an additional unary
node with a special tag that is recognized by your grammar. For
instance, exponentbits currently returns:

   unary_expr<  exponentbits, arg>

Instead, make it return:

   unary_expr<  exponentbits, unary_expr<  hidedomain, arg>  >

Now, add the following alternate to your grammar:

   unary_expr<  hidedomain, _>

Make sense?
Eric, once again, your brain > my brain.
I'll test this asap.

_______________________________________________
proto mailing list
[email protected]
http://lists.boost.org/mailman/listinfo.cgi/proto

Reply via email to