[antlr-interest] python example question and getCharPositionInLine
Putrycz, Erik
Erik.Putrycz at nrc-cnrc.gc.ca
Fri Aug 31 11:49:10 PDT 2007
In the python example, to detect the column, the grammar uses an in startPos that in initialized before nextToken in the lexer. Would there be a difference in using getCharPositionInLine() instead?
Erik Putrycz, Ph.D - Research Associate
Institute for Information Technology - Software Engineering Group
National Research Council, Canada - Building M-50, 1200 Montreal Road
Ottawa, Ontario, CANADA K1A 0R6
More information about the antlr-interest
mailing list