[antlr-interest] Conditional tree parsing

Terence Parr parrt at cs.usfca.edu
Tue Oct 31 09:29:46 PST 2006


Try #(TOKEN .)

Ter

On Oct 31, 2006, at 9:24 AM, VAUCHER Laurent wrote:

>   To put it in simpler terms: is there a syntax in the grammar file  
> for
> TreeParsers to match 'any' subtree without trying to 'walk' it?
>
>
>
>   #(TOKEN i:AST)
>     {
>       // Here I can operate on 'i' at the raw AST level without
>       // the TreeParser trying to do anything else
>     }
>
>
> Laurent.
>



More information about the antlr-interest mailing list