Re: yacc error handling

Bryan Ewbank <>
23 Nov 1999 00:36:47 -0500

          From comp.compilers

Related articles
Re: YACC error handling (1989-07-29)
yacc error handling (Ajay Kalhan) (1999-11-19)
Re: yacc error handling (Ajay Kalhan) (1999-11-21)
Re: yacc error handling (Bryan Ewbank) (1999-11-23)
Re: yacc error handling (Zalman Stern) (1999-11-28)
Re: yacc error handling (Michael C Schweisguth) (1999-12-07)
Re: yacc error handling (Bill Fahle) (1999-12-24)
| List of all articles for this month |

From: Bryan Ewbank <>
Newsgroups: comp.compilers
Date: 23 Nov 1999 00:36:47 -0500
Organization: Lucent Technologies
References: 99-11-117 99-11-128
Keywords: yacc, errors

> Objective is to cleanup memory allocations on parse errors.

Since there are parse errors, isn't the program going to exit? If so,
why bother cleaning up?

Note that this does not work for destructors of created objects, since
there can be all kinds of side effects :-)
Bryan Ewbank <><
Lucent Technologies,, 630.979.1871
[Lots of programs call yyparse() more than once, to parse line by line
and the like. -John]

Post a followup to this message

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