From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8178 invoked from network); 29 May 2000 08:56:45 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 29 May 2000 08:56:45 -0000 Received: (qmail 13130 invoked by alias); 29 May 2000 08:56:40 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11629 Received: (qmail 13122 invoked from network); 29 May 2000 08:56:38 -0000 From: "Bart Schaefer" Message-Id: <1000529085624.ZM28993@candle.brasslantern.com> Date: Mon, 29 May 2000 08:56:24 +0000 In-Reply-To: <200005290827.KAA03935@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "Re: PATCH (!): Re: PATCH: (very) bad syntax error checking" (May 29, 10:27am) References: <200005290827.KAA03935@beta.informatik.hu-berlin.de> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: Re: PATCH (!): Re: PATCH: (very) bad syntax error checking MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On May 29, 10:27am, Sven Wischnowsky wrote: } Subject: Re: PATCH (!): Re: PATCH: (very) bad syntax error checking } } Bart Schaefer wrote: } } > I wonder why parse_list() doesn't use YYERROR() ... is there some reason } > why `ecused' should not be set to 0 in that specific case? } } It doesn't use YYERROR* because it has to return NULL and we have } YYERRORs only for void and integer, I think (I didn't change that } part). Zero is NULL, and NULL is zero. Using YYERROR(0) would return NULL. But perhaps a better question is: `tok' is a global, right? Why not put the `tok = LEXERROR' into yyerror() itself? -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net