Path: utzoo!attcan!uunet!mcvax!tuvie!hpuviea!mah From: mah@hpuviea.UUCP (Michael Haberler) Newsgroups: comp.unix.questions Subject: Re: yacc Message-ID: <822@hpuviea.UUCP> Date: 23 Nov 88 08:55:42 GMT References: <5740033@hpfcdc.HP.COM> Organization: Hewlett-Packard Vienna,Austria Lines: 23 From article <5740033@hpfcdc.HP.COM>, by mike@hpfcdc.HP.COM (Mike McNelly): >> too many states." When I run yacc with -v on a slightly simplified >> .y file, it tells me that it is defining 748 of 750 states. >> >> My question is: is there any way I can increase the number of states? >> If so, how do I do it? The documentation I've been able to get my >> hands on says nothing about the number of states. > > Unless you have access to the source code for yacc, the state limit is a > hard one. Yacc does not have dymanically allocated arays for its Why not just forget about Yacc and use Bison, a Free Software Foundation replacement for Yacc? Browse through your next comp.sources.unix archive and you might be able to find it. I got it to work on a PC; it does the complete Ada grammar in under 2 minutes on an AT. And this one sure has a substantial number of states. -michael -- Michael Haberler mah@hpuviea.at Hewlett-Packard Austria GmbH, ...mcvax!tuvie!hpuviea!mah Lieblgasse 1 ...hplabs!hpfcla!hpbbn!hpuviea!mah A-1220 Vienna, Austria Tel: (0043) (222) 2500 x412 (9-18 CET)