[antlr-interest] error messages
William Lam
xeenman at yahoo.com
Sun Jun 15 19:47:33 PDT 2003
Hi all,
I have a grammar file with rules such as
rule : "order" "by" literal ( COMMA literal)*;
The issue is that when i have invalid input such as 'ORDER BY',
i get an exception with the message "unexpected token: null"
Is there any way to get better error messages? such as
'error near ORDER BY'?
I was looking through the exception handling document in the antlr
web site. Is it expected that I put an Exception catch block at the
end of each rule?
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list