[antlr-interest] Conditional tree parsing

VAUCHER Laurent VAUCHER at fermat.eu
Tue Oct 31 09:33:42 PST 2006


 
Yep! 

#(TOKEN i:.) does the trick!

Thanks a lot!


-----Message d'origine-----
De : Terence Parr [mailto:parrt at cs.usfca.edu] 
Envoyé : 31 October 2006 18:30
À : VAUCHER Laurent
Cc : antlr-interest at antlr.org
Objet : Re: [antlr-interest] Conditional tree parsing

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