help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using %printer


From: Akim Demaille
Subject: Re: Using %printer
Date: Fri, 15 Sep 2006 10:43:08 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

>>> "Frans" == Frans Englich <address@hidden> writes:

 > I guess one would have to invent a different "print system" for
 > that. Perhaps those "error printers" would return a heap allocated
 > char string, which the caller(the bison generated parser) is
 > responsible for de-allocating.

That's very hairy...  Besides, I don't think that for error reporting
pretty-printing the symbols is the right means to do it.  I think one
should rather use accurate locations, re-open the guilty file, and
print the guilty input.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]