[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Grammatica-users] Internal error when running the profiler
From: |
Luc Morin |
Subject: |
[Grammatica-users] Internal error when running the profiler |
Date: |
Thu, 10 Mar 2005 14:31:02 -0500 |
Hi,
Grammatica version
1.4
java version
"1.5.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build
1.5.0_01-b08)
Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode,
sharing)
Windows XP SP
2
I'm seeing the following
happening when profiling the following grammar (probably an error in my grammar
anyway).
Error
message:
C:\GRAMMA~1.4\lib>java -jar grammatica-1.4.jar my.grammar
--profile file.test
Tokenizing file.test
Time elapsed: 15
millisec
Tokens found: 18
Average speed: 1
tokens/millisec
Parsing file.test
Time elapsed: 0
millisec
Nodes found: 30
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)
----------------8<----------------
my.grammar:
%header%
GRAMMARTYPE =
"LL"
DESCRIPTION = "A grammar for a
new form generator."
AUTHOR = "Luc
Morin"
VERSION =
"1.0"
DATE = "10 march
2005"
LICENSE
= "Permission is granted to copy this document verbatim in
any
medium, provided that this copyright notice is left intact."
COPYRIGHT =
"Copyright (c) 2005 Luc Morin. All rights reserved."
%tokens%
Q_MARK =
"?"
COLON =
":"
EQUAL =
"="
GREATER_THAN = ">" //%ignore%
SMALLER_THAN = "<"
//%ignore%
QUOTED_STRING
=
<<"[^"]*">>
NUMBER
=
<<[0-9]+>>
WHITESPACE
= <<[ \t\n\r]+>> %ignore%
%productions%
CondStatement = EqualExpression Q_MARK Property COLON Property
;
//Property = SMALLER_THAN Propnum [Index] [Property]
GREATER_THAN ;
Property = "<" Propnum [Index] [Property] ">"
;
EqualExpression = Property EQUAL QUOTED_STRING ;
Propnum = NUMBER ;
Index = NUMBER ;
----------------8<----------------
file.test:
<5 1> = "allo" ?
<6> : <7<8 1>>
----------------8<----------------
Thank you
Luc
Morin
Electrical Designer
Wulftec / M.J. Maillis Group
address@hidden
Ph.: (819) 838-4232 ext. 232
Fx.: (819) 838-5539
<<
Avis de confidentialité >>
Ce courrier
électronique ainsi que tous les documents qui y sont attachés sont de nature
privilégiée et confidentielle et sont destinés à l'utilisation exclusive du ou
des destinataire(s) ci-haut mentionné(s) . Toute autre personne ayant reçu
ce message par erreur est priée de bien vouloir s'abstenir de divulguer,
distribuer ou reproduire ce message et/ou son contenu. Si le destinataire ne
peut être rejoint ou vous est inconnu, nous vous prions d'informer
immédiatement l'expéditeur de ce présent message par retour de courriel en
plus d'effacer ce message et détruire toutes les copies.
Merci.
<< Confidentiality Notice >>
This e-mail message and any files transmitted with it are confidential,
may be privileged and are intended
for the exclusive use of the addressee(s). Any other person is strictly
prohibited from disclosing, distributing or reproducing it. If the addressee
cannot be reached or is unknown to you, please inform the sender by return
e-mail immediately, delete this e-mail
message and destroy all copies. Thank
you.
- [Grammatica-users] Internal error when running the profiler,
Luc Morin <=