[antlr-interest] position information with AST node

Micheal J open.zone at virgin.net
Wed Mar 15 06:56:48 PST 2006


Also study the examples. The Java and C# grammar samples do this iirc.

Micheal


> -----Original Message-----
> From: antlr-interest-bounces at antlr.org 
> [mailto:antlr-interest-bounces at antlr.org] On Behalf Of Martin Probst
> Sent: 15 March 2006 13:46
> To: antlr-interest at antlr.org
> Subject: Re: [antlr-interest] position information with AST node
> 
> 
> > I want position information with AST node as IToken does(getLin(), 
> > getColumn()). How to achive that?
> 
> That's explained in the manual. Look for using a custom AST class.
> 
> Cheers,
> Martin
> 



More information about the antlr-interest mailing list