[antlr-interest] Is there anyway to get the char index of one token in parser?

chain one chainone at gmail.com
Wed Mar 11 02:54:42 PDT 2009


It seems the charPosition() function from token strut returns the char
position in line, not the offset from the start of the input stream.So, I
wondering is there anyway to get the char index of one token from the start
of the input stream in parser?

Thanks,
Best Regards,
chainone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090311/4742940c/attachment.html 


More information about the antlr-interest mailing list