[antlr-interest] Getting parser to know line number
Xavier Decoret
decoret at graphics.lcs.mit.edu
Sun Jan 12 02:34:34 PST 2003
I have actions in my parser that throw SemanticException (used to
identify context dependent errors). I would like to provide this
Exception with a line number but I cannot get the line number from the
parser. The only objects that seems to "know" it, that is have a
getLine() method are CharScanner and Token.
Thanks.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list