Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!stl!robobar!ronald From: ronald@robobar.co.uk (Ronald S H Khoo) Newsgroups: comp.lang.perl Subject: Re: yacc stack overflow Message-ID: <1991Mar14.080812.19719@robobar.co.uk> Date: 14 Mar 91 08:08:12 GMT References: <1991Mar13.012932.1710@NCoast.ORG> <21877@yunexus.YorkU.CA> Organization: Robobar Ltd., Perivale, Middx., ENGLAND. Lines: 37 oz@yunexus.yorku.ca (Ozan Yigit) writes: > allbery@ncoast.ORG (Brandon S. Allbery KB8JRR) writes: > >Yacc is one of those utilities with an arbitrary, compiled-in limit ... > > Does that limit exist on PD byacc? [berkeley yacc] If not, maybe you > would be better off using that one. I quote from /usr/local/src/perl/perl.c: static char yysccsid[] = "@(#)yaccpar 1.8 (Berkeley) 01/20/90"; #ifdef YYSTACKSIZE #ifndef YYMAXDEPTH #define YYMAXDEPTH YYSTACKSIZE #endif #else #ifdef YYMAXDEPTH #define YYSTACKSIZE YYMAXDEPTH #else #define YYSTACKSIZE 500 #define YYMAXDEPTH 500 #endif #endif [...] if (yyssp >= yyss + yystacksize - 1) { goto yyoverflow; } [...] yyoverflow: yyerror("yacc stack overflow"); So it looks like that's the case too. Ho hum. -- Ronald Khoo +44 81 991 1142 (O) +44 71 229 7741 (H)