[antlr-interest] middle-end example
Gavin Lambert
antlr at mirality.co.nz
Mon Oct 29 11:55:35 PDT 2007
At 02:08 30/10/2007, Michael LeBlanc wrote:
>I looked through the v3 examples but didn't spot what I'm
>looking for, which is:
>
>Pass 1: Normal grammar that writes a tree.
>Pass 2 thru N-1: Tree grammars that rewrite the tree.
>Optimizers, if you like.
>Pass N: Tree grammar that writes string-templates to produce
>final output.
>
>Can anyone point me to such a thing?
V3 does not yet support multiple tree passes (specifically, a tree
parser cannot be told to output a tree).
It's on the todo list.
More information about the antlr-interest
mailing list