🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Paul Fox Thu, 01 Jun 1989 10:23
Bison bugs ?
#1643
Author: Paul Fox
Date: Thu, 01 Jun 1989 10:23
41 lines
2311 bytes
Hello world...I seemed to be having a problem with bison.
Not quite sure who I should be posting this to - I'd rather
not necessarily bother RMS and friends because I know them to be busy,
but I have a problem with bison which is indicative of a bug.

Bison is pretty 'hairy' :-) :-) so I'd prefer not to spend my
time trying to crack this.

The thing is this. I have a yacc grammar which up until now I've
been using bison to generate the code for, but things started going
wrong - the C code would mis-parse my input and think it was
going into the wrong state. Its obviously pretty difficult
to decide whats going on from a debuggers point of view, so I
decided to try it with yacc and it works! So, either there is a bug
in bison with regards to compatability with yacc or I've added something
which has caused some internal table to overflow or corrupt something.

As far as I am aware this is the latest bison (version 1.01 gotten
from osu-cis about a week or two ago). This is on a Sun 3/260
running SunOS 4.0.1. I've tried compiling with gcc (1.35) and
with /bin/cc but that makes no difference.

Also, I tried this same software on my 386/ix V.3.2 box with cc + gcc + bison
and gotten very bizarre results -- the y.tab.h file generated has tokens starting
at < 255 instead of the usual 258.

Has anyone else experienced problems with bison, or am I missing
some option/switch that I need to set. I've read the bison.texinfo
manual but theres nothing in there to tell me that I need to increase
the size of any tables, etc.

Many thanks in advance.
=====================			Reuters Ltd PLC, 
Tel: +44 628 891313 x. 212		 Westthorpe House,
UUCP:     fox%marlow.uucp@idec.stc.co.uk  Little Marlow,
					   Bucks, England SL7 3RQ
-- 
=====================			Reuters Ltd PLC, 
Tel: +44 628 891313 x. 212		 Westthorpe House,
UUCP:     fox%marlow.uucp@idec.stc.co.uk  Little Marlow,
					   Bucks, England SL7 3RQ
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads