|Error handling in yacc question vera@fanaraaken.Stanford.EDU (1992-09-23)|
|Re: Error handling in yacc question email@example.com (1992-09-23)|
|Re: Error handling in yacc question firstname.lastname@example.org (Elliot H. Mednick) (1992-09-26)|
|From:||email@example.com (Bob Olson)|
|Organization:||Argonne National Laboratory, Argonne, Illinois|
|Date:||Wed, 23 Sep 1992 18:14:59 GMT|
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
Return to the
Search the comp.compilers archives again.