From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8269 invoked from network); 29 May 2000 09:10:57 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 29 May 2000 09:10:57 -0000 Received: (qmail 14882 invoked by alias); 29 May 2000 09:10:33 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11630 Received: (qmail 14875 invoked from network); 29 May 2000 09:10:33 -0000 Date: Mon, 29 May 2000 11:10:27 +0200 (MET DST) Message-Id: <200005290910.LAA04169@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: "Bart Schaefer"'s message of Mon, 29 May 2000 08:56:24 +0000 Subject: Re: PATCH (!): Re: PATCH: (very) bad syntax error checking Bart Schaefer wrote: > 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 we are quite picky about distinguishing between the two. > But perhaps a better question is: `tok' is a global, right? Yes. > Why not put > the `tok = LEXERROR' into yyerror() itself? Good question. Haven't looked yet... Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de