|More detailed error messages when using yacc email@example.com (2000-07-23)|
|Re: More detailed error messages when using yacc firstname.lastname@example.org (2000-08-05)|
|Date:||23 Jul 2000 17:02:16 -0400|
|Organization:||Deja.com - Before you buy.|
|Keywords:||parse, yacc, errors, question, comment|
I'm currently writting a parser for a small query language using
byacc/j is a patched Berkeley 1.8 yacc parser generator that is able to
produce Java code.
Since this parser will be part of an end-user GUI I would like to
provide detailed error messages to the user in case of an parse/syntax
error. Currently I'm able to tell the user the line and column where the
error occours and the symbol that caused the error. But additionally I
would like to provide informations what the parser expected to read
instead of the wrong symbol it got.
How do I do that?
Thanks in advance.
[Getting better errors from yacc is a pain. See the comp.compilers
archives, where this topic has been discussed at length over the past
Return to the
Search the comp.compilers archives again.