[JavaCC]: javacc seems to infinitely loop

View: New views
3 Messages — Rating Filter:   Alert me  

[JavaCC]: javacc seems to infinitely loop

by Giacomo Galilei :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all.
I have a quite complex grammar (not optimized and very bad designed :P) that seems to make javacc to dead loop. If I comment out a rule the parser generation takes something like 5-6 seconds; but with such rule the generation process does not end even after 16 minutes (I stop the process manually with ctrl+c and killall -9 java). I tested the grammar with JavaCC 4.2 and with JavaCC 5.0.

Could this be a bug ?

Gg`

Re: [JavaCC]: javacc seems to infinitely loop

by darose :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Giacomo Galilei wrote:

> Hi all.
> I have a quite complex grammar (not optimized and very bad designed :P) that
> seems to make javacc to dead loop. If I comment out a rule the parser
> generation takes something like 5-6 seconds; but with such rule the
> generation process does not end even after 16 minutes (I stop the process
> manually with ctrl+c and killall -9 java). I tested the grammar with JavaCC
> 4.2 and with JavaCC 5.0.
>
> Could this be a bug ?
>
> Gg`

Probably a bug in your grammar, I'd guess.  You grammar is probably
causing Javacc to loop.

DR

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: [JavaCC]: javacc seems to infinitely loop

by Nadun Herath :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What is the grammer.? Can u please post it.?

Nadun

Thanks.

On Mon, Jul 20, 2009 at 8:07 PM, David Rosenstrauch <darose@...> wrote:
Giacomo Galilei wrote:
Hi all.
I have a quite complex grammar (not optimized and very bad designed :P) that
seems to make javacc to dead loop. If I comment out a rule the parser
generation takes something like 5-6 seconds; but with such rule the
generation process does not end even after 16 minutes (I stop the process
manually with ctrl+c and killall -9 java). I tested the grammar with JavaCC
4.2 and with JavaCC 5.0.

Could this be a bug ?

Gg`

Probably a bug in your grammar, I'd guess.  You grammar is probably causing Javacc to loop.

DR

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...