Related articles |
---|
a question on bison javier.dupond@compaq.com (1998-11-19) |
Re: a question on bison larrybr@seanet.com (Larry Brasfield) (1998-11-21) |
From: | "Larry Brasfield" <larrybr@seanet.com> |
Newsgroups: | comp.compilers,comp.programming |
Date: | 21 Nov 1998 12:02:54 -0500 |
Organization: | Serendipitous Endeavors |
References: | 98-11-102 |
Keywords: | yacc |
javier.dupond@compaq.com wrote in message 98-11-102...
> I am working on MS VC++ on NT and while compiling a very large
>grammar I get the following error:
>
>"sqlparser.y", line 12054: maximum table size (32767) exceeded
>
> After doing some research, we found out that in the source code for
>bison v.1.25 there is a #define MAXTABLE 32767 in machine.h. We can
>modify that value, but does anyone now what would the consequences be?
I would look to see where the value is used, and be sure any tables
limited to that size are not addressed by short int's. The limit
probably reflects an assumed int size for the DOS target, making it
safe to change, but I would still check for short's.
>Is there another way to overcome this bison 32K limitation?
Push more of the work into the scanner? You must have one Hell of a
grammar.
--Larry Brasfield
Return to the
comp.compilers page.
Search the
comp.compilers archives again.