yacc

John David Cavanaugh cavanaug at ncrcce.StPaul.NCR.COM
Fri Nov 18 06:33:51 AEST 1988


I am working on a C compiler that has a couple of yacc-generated
parsers (one for the C input, one for the intermediate language).
I recently made a change to one of the yacc grammar definitions (the
.y file), and when I run yacc, I get a message saying, "fatal error:
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.

Thanks in advance for any help or hints.

-- 
John Cavanaugh                       John.Cavanaugh at StPaul.NCR.COM
NCR Comten, Inc.                     (612) 638-2822
2700 Snelling Ave. N
St. Paul, MN  55113                  Standard disclaimer.



More information about the Comp.unix.questions mailing list