Re: Anyone extended MAXTABLE in yacc parsers?

corbett@lupa.Eng.Sun.COM (Robert Corbett)
24 Sep 1998 00:19:22 -0400

          From comp.compilers

Related articles
Anyone extended MAXTABLE in yacc parsers? chseet@mbox2.singnet.com.sg (C. H. Seet) (1998-09-22)
Re: Anyone extended MAXTABLE in yacc parsers? vmakarov@cygnus.com (Vladimir Makarov) (1998-09-22)
Re: Anyone extended MAXTABLE in yacc parsers? corbett@lupa.Eng.Sun.COM (1998-09-24)
Re: Anyone extended MAXTABLE in yacc parsers? corbett@lupa.Eng.Sun.COM (1998-09-24)
Re: Anyone extended MAXTABLE in yacc parsers? mtew@cds.duke.edu (Max TenEyck Woodbury) (1998-09-26)
Re: Anyone extended MAXTABLE in yacc parsers? vadik@siber.com (Vadim Maslov) (1998-09-26)
| List of all articles for this month |

From: corbett@lupa.Eng.Sun.COM (Robert Corbett)
Newsgroups: comp.compilers
Date: 24 Sep 1998 00:19:22 -0400
Organization: Sun Microsystems Computer Corporation
References: 98-09-105
Keywords: yacc

C. H. Seet <chseet@mbox2.singnet.com.sg> wrote:
>Byacc's limit (defined by MAXTABLE) is 32500. I've tried extending this
>number to 150000, but the resultant table does not work.


The reason the limit is 32500 is that the offsets into the table
are shorts. To make tables larger than 32767 work, you will have
to change a bunch of shorts to ints or longs.


At the time I wrote Berkeley Yacc, machines had such small memories
that using shorts instead of ints was a big plus. Times change.


Sincerely,
Bob Corbett
--


Post a followup to this message

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