[antlr-interest] Best way to get absolute character position?

Paul J. Lucas dude at darkfigure.org
Fri Mar 5 13:47:22 PST 2004


The Token class provides getLine() and getColumn().  But what I want is something like 
getBeginCharIndex() and getEndCharIndex(), i.e., functions to tell me the absolute 
character positions the token starts/ends at from the begginning of the character stream.

What's the best way to get this information?

- Paul



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
     antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 



More information about the antlr-interest mailing list