help-bison
[Top][All Lists]
Advanced

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

Re: Multiple Parsers in the Same Program


From: Laurence Finston
Subject: Re: Multiple Parsers in the Same Program
Date: Sat, 4 Sep 2004 12:49:58 +0200 (MEST)

On Sat, 4 Sep 2004, Patrick Bellasi wrote:

> > Probably an uninitialized pointer.  I suggest running your program in a
> > debugger, such as the GNU debugger GDB.  Then you'll be able to pinpoint
> > the exact spot.  Use `bt' to get a "backtrace", which will show you a
> > listing of the current stack frames.
> Always done... But the info I'm getting are not useful for me.
> The crash is inside yylex()...
> ... but the code seem to go in an infinite loop: bt show a great number of
> nested call of the same routine!
>

Sorry, I don't have time to go through your code.  I tend to use lots
of debugging output with calls to `getchar()' to halt the program while I
look at it.  If you put some in each action in your Flex input
file, you should be able to pinpoint the spot where the infinite loop
starts.

Laurence




reply via email to

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