anyone played with yacc?

R. Curtis Jackson rcj at clyde.UUCP
Thu Jun 7 00:17:12 AEST 1984


Hi, netland -- this question involves a Vax 11/780 running USG 5.0,
but will probably apply to any 32-bit machine running almost any Unix.

I have a guy here at Whippany who wants to have a yacc input with a
large number of tokens in it, but yacc barfs after 127.  I looked through
the source code and found a define for NTERMS to be 127.  My question
is, This is a pretty suspicious-looking number and I am wondering
if anyone has experimented with it and found out how it interacts with
the other defines in that section of the file 'dextern' and also if
there is any garbage in the code that would screw up as a result of
increasing NTERMS to something like 255. (i.e., is there any funny
bit-masking, etc. that would blow up).

Any pointers (other than looking through source code -- that is a last
resort when you are already working 70-hour weeks....) would be
greatly appreciated.

Thanks,



More information about the Comp.unix.wizards mailing list