
On 2/25/2011 9:38 PM, Mathias Gaunard wrote:
On 25/02/2011 14:13, Thomas Heller wrote:
It would be nice to have a tool like Proto but that was extended to deal with more C++ language constructs. Even if the syntax to call them requires transforming those constructs to expressions with a DSEL of its own, at least there can be a canonic way to do so.
This already exists inside proto, there are basic language constructs and it is easily extensible (through proto transforms).
There is no proto::if_, proto::while_ etc.
The way I see it, Phoenix could provide the canonical way to represent statements in Proto-based DSELs.
This is very interesting! I never envisioned this when I first wrote Phoenix. I'd love to see more of this. Regards, -- Joel de Guzman http://www.boostpro.com http://boost-spirit.com