More detailed error messages when using yacc
23 Jul 2000 17:02:16 -0400

          From comp.compilers

Related articles
More detailed error messages when using yacc (2000-07-23)
Re: More detailed error messages when using yacc (2000-08-05)
| List of all articles for this month |

Newsgroups: comp.compilers
Date: 23 Jul 2000 17:02:16 -0400
Organization: - 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.
bye, Thomas
[Getting better errors from yacc is a pain. See the comp.compilers
archives, where this topic has been discussed at length over the past
decade. -John]

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.