Re: Error handling in yacc question

olson@antares.mcs.anl.gov (Bob Olson)
Wed, 23 Sep 1992 18:14:59 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: olson@antares.mcs.anl.gov (Bob Olson)
Organization: Argonne National Laboratory, Argonne, Illinois
Date: Wed, 23 Sep 1992 18:14:59 GMT
Keywords: yacc, errors
References: 92-09-142

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? ...


Bison does this if you compile the generated parser with YYERROR_VERBOSE
defined.


--bob
--


Post a followup to this message

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