Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!srcsip!jhereg!wd0gol!newave!john From: john@newave.UUCP (John A. Weeks III) Newsgroups: comp.lang.c Subject: Re: 127 terminals, too few for a decent yacc? Message-ID: <87@newave.UUCP> Date: 11 Apr 90 01:35:32 GMT References: <5627@buengc.BU.EDU> Reply-To: john@newave.mn.org (John A. Weeks III) Organization: NeWave Communications Ltd, Eden Prairie, MN Lines: 27 In article <5627@buengc.BU.EDU> bph@buengc.bu.edu (Blair P. Houghton) writes: > I don't know how many terminals I have in there, but yacc > refuses to process one of the .y files in something I > snarfed, claiming that it can only deal with 127. When your tools complain about your programming style, perhaps it is time to step back and see if there is a fundamentally better way to solve your problem. > Where do I get a manly yacc, and how old is this bug? It might just be a "#define". Check with your sys-op to see if you have the UNIX sources. If you do, you should have the sources to YACC, and since you are at an "edu" site, there is a very good chance of that. It drives me nuts when programmers use #define to define max whatevers for no particular reason. Even if the value is very large, someone will someday bump into it. -john- -- =============================================================================== John A. Weeks III (612) 942-6969 john@newave.mn.org NeWave Communications ...uunet!rosevax!bungia!wd0gol!newave!john ===============================================================================