On 3/11/12 1:38 AM, Philippe Sigaud wrote:
On Sun, Mar 11, 2012 at 08:26, Andrei Alexandrescu
<seewebsiteforem...@erdani.org> wrote:
Any chance you consider adding AST generator actions as discussed in the
main forum a while ago?
The AST is automatically produced, and there are already AST actions
to simplify / guide its creation. There already is an 'ignore that
node' syntax and a 'fuse the captures here'.
Also, semantic actions are there, so I think the basis is there, I
just need to add a few tree actions : cut children, take only some
children.
I'll add it today.
But maybe you had something else in mind? I'll go and search for the
thread you refer to.
I was thinking of ANTLR-style operators in which you say where the root
should be and you get to drop unnecessary nodes.
(Post on 2012/02/29 10:19AM GMT-0600.)
Andrei