[antlr-interest] ANTLR 3 and getColumn()

Terence Parr parrt at cs.usfca.edu
Tue Mar 14 16:30:27 PST 2006

On Mar 14, 2006, at 4:27 PM, Putrycz, Erik wrote:

> I’m currently working on a COBOL grammar for ANTLR and I have to  
> say that AntLRWorks is really easing my life…
> In COBOL, white spaces play a major role and I looked at the Python  
> example. I find the startPos way less friendly than the v2 getColumn 
> ().
> If I understand, currently there is no way to attach hooks (such as  
> overriding nextToken()) in AntLRWorks. Are there plans for that?

It's an ANTLR thing...you should be able to override that method in  
your Token to do what you want. :)


More information about the antlr-interest mailing list