Re: Error handling in yacc question

"Elliot H. Mednick" <elliot@wellspring.com>
Sat, 26 Sep 1992 19:43:30 GMT

          From comp.compilers

Related articles
Error handling in yacc question vera@fanaraaken.Stanford.EDU (1992-09-23)
Re: Error handling in yacc question olson@antares.mcs.anl.gov (1992-09-23)
Re: Error handling in yacc question elliot@wellspring.com (Elliot H. Mednick) (1992-09-26)
| List of all articles for this month |
Newsgroups: comp.compilers
From: "Elliot H. Mednick" <elliot@wellspring.com>
Organization: Wellspring Solutions
Date: Sat, 26 Sep 1992 19:43:30 GMT
Keywords: yacc, errors, books, comment

vera@fanaraaken.Stanford.EDU (James S. Vera) writes:
> Speaking of yacc error handling, its easy enough to put out a message
> saying token "x" was unexpected. How does one find out what set of
> tokens was expected? ...


See "Introduction to Compiler Construction with UNIX" by Schreiner and
Freidman (Prentice-Hall, 1985). They present the code for doing what
you want.


-Elliot
--
Elliot H. Mednick P.O. Box 150
Wellspring Solutions Sutton, MA. 01590
elliot@Wellspring.com +1 508 865 7271
[Good point. It's in the back, in Appendix A. -John]
--


Post a followup to this message

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