bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Re: Flex scanner stops when bison is calling]


From: Robert Williamson
Subject: Re: [Re: Flex scanner stops when bison is calling]
Date: Wed, 28 May 2003 15:15:46 -0000

It turned out that, indeed, it was a very simple error. I inadvertently
included a return statement in the brackets for one of my productions. This
causes bison to halt.

Robert

Paul Eggert <address@hidden> wrote:
Robert Williamson <address@hidden> writes:

> I am working with bison 1.75 and flex 2.5.4 on SunOS 5.7 (Solaris). I'm not
> sure why, but when I generate a parser with my scanner, the scanner only
> reports the first token. I'm sure the scanner is ok, because I have used it
to
> scan a variety of different inputs successfully.

That doesn't necessarily mean that the scanner is OK; it could be that
there is a bug in the scanner that is tickled by Bison 1.75.

Have you tried it with Bison 1.875?  Or Bison 1.875a?
ftp://alpha.gnu.org/gnu/bison/bison-1.875a.tar.gz

If that doesn't fix the problem for you, please post more details
about your scanner and parser, as we can't help much from what you
wrote.




____________________________________________________________________
   





reply via email to

[Prev in Thread] Current Thread [Next in Thread]