Related articles |
---|
More intellegent error reporting than 'parse error' with Bison tergiver@msn.com (2003-10-13) |
Re: More intellegent error reporting than 'parse error' with Bison cdc@maxnet.co.nz (Carl Cerecke) (2003-10-13) |
Re: More intellegent error reporting than 'parse error' with Bison nr@labrador.eecs.harvard.edu (2003-10-31) |
From: | nr@labrador.eecs.harvard.edu (Norman Ramsey) |
Newsgroups: | comp.compilers |
Date: | 31 Oct 2003 23:07:03 -0500 |
Organization: | Debian GNU/Linux site |
References: | 03-10-066 |
Keywords: | yacc, errors |
Posted-Date: | 31 Oct 2003 23:07:03 EST |
[Look through the archives. This question has come up a lot, without many
useful answers. LALR parsers do a fine job on correct input, but on
incorrect input they tend to throw up their hands unless you put in lots
and lots of error rules along with adhoc stuff to track the context.
-John]
If you are willing to add better error messages by hand, Clinton
Jeffery recently had a very nice TOPLAS paper that explains how to do
it with tool support. See http://unicon.sourceforge.net/merr/
--
Norman Ramsey
http://www.eecs.harvard.edu/~nr
Return to the
comp.compilers page.
Search the
comp.compilers archives again.