[antlr-interest] Tracking Character Position in antlr3
    Gavin Lambert 
    antlr at mirality.co.nz
       
    Fri Jan 19 17:45:17 PST 2007
    
    
  
At 06:48 20/01/2007, Edson Tirelli wrote:
 >   Sorry, but I'm kind of new to antlr... what do you mean by
 >"removed all newline() calls"?
I think that's a V2-ism.  In ANTLR v2 you had to explicitly call 
newline() whenever you recognised a character or sequence that you 
wanted to consider as an end-of-line, and it used that to update 
its internal line and column tracking.  So if you removed those 
calls then it would report everything as being on one long line.
In V3 it handles all that internally, so there's nothing for you 
to remove (unless you start hacking apart the ANTLR code itself).
    
    
More information about the antlr-interest
mailing list