[antlr-interest] AST rewriting

Alvaro Egana aegana at noao.edu
Wed Jul 2 14:43:50 PDT 2008


> def : ^(DEF name expr) -> ^(DEF name STRING[$expr.value]) ;
>
> (Not entirely sure about that syntax, but it's something like that.)

Gavin,

This is exactly what I needed!!! (and it's nicely working with that syntax, :)).

Thanks Gavin (and Bernardo) for your great help.

Alvaro


More information about the antlr-interest mailing list