grammatica-users
[Top][All Lists]
Advanced

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

Re: [Grammatica-users] ERROR "An internal error in Grammatica has been f


From: Per Cederberg
Subject: Re: [Grammatica-users] ERROR "An internal error in Grammatica has been found" / Division by Zero
Date: Wed, 24 Mar 2004 20:59:12 +0100

On Wed, 2004-03-24 at 14:50, Stefan Ukena wrote:
> INTERNAL ERROR: An internal error in Grammatica has been found.
>     Please report this error to the maintainers (see the web
>     site for instructions). Be sure to include the Grammatica
>     version number, as well as the information below:
> 
> java.lang.ArithmeticException: / by zero
>         at
> net.percederberg.grammatica.Grammatica.profile(Grammatica.java:547)
>         at net.percederberg.grammatica.Grammatica.main(Grammatica.java:175)
> 
> <snap>
> 
> It's obviously a problem with the time-elapsed-value of Zero, isn't it?
> Increasing the file-size of my test-file cranked it up to 60 millisecs
> and no error. Just thought I'd let you know (who would ever expect that
> modern computers are _that_ fast :-))

Yes, zero ms is quite fast... ;-) Another user found the same thing
some weeks ago, so there is already an open bug:
http://savannah.nongnu.org/bugs/index.php?func=detailitem&item_id=7998

Thanks for pointing it out!

> OT: Your hint in one of the previous posts about using "--tokenize" etc.
> to debug the grammar was very helpfull. As was your hint to first define
> all the tokens and only after that the productions. Maybe you could put
> this sort of information in a more prominent place (like the docs)?

I most definitely could. I've added a bug to track this request 
(and not forget about it when doing the next release):
http://savannah.nongnu.org/bugs/index.php?func=detailitem&item_id=8289

Many thanks for this advise, I'm always grateful for ideas on how
to improve Grammatica further. Especially regarding the 
documentation. In the end it is a bit tricky for me to guess what
parts are hard to understand and what parts are not. (Although the
questions on this list do give me a hint...)

Cheers,

/Per






reply via email to

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