From MAILER-DAEMON Wed Apr 22 15:35:51 2009 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LwiEY-0005pW-Vb for mharc-grammatica-users@gnu.org; Wed, 22 Apr 2009 15:35:51 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LwiEW-0005oo-Qw for grammatica-users@nongnu.org; Wed, 22 Apr 2009 15:35:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LwiER-0005mI-TU for grammatica-users@nongnu.org; Wed, 22 Apr 2009 15:35:48 -0400 Received: from [199.232.76.173] (port=44696 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LwiER-0005mC-NE for grammatica-users@nongnu.org; Wed, 22 Apr 2009 15:35:43 -0400 Received: from smtpauth14.prod.mesa1.secureserver.net ([64.202.165.39]:39837) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LwiER-0000wd-6h for grammatica-users@nongnu.org; Wed, 22 Apr 2009 15:35:43 -0400 Received: (qmail 13065 invoked from network); 22 Apr 2009 19:35:37 -0000 Received: from unknown (98.134.241.64) by smtpauth14.prod.mesa1.secureserver.net (64.202.165.39) with ESMTP; 22 Apr 2009 19:35:36 -0000 From: "Kevin" To: "Grammatica" Date: Wed, 22 Apr 2009 14:35:34 -0500 Organization: KelleySoft Message-ID: <784C3BE936164FC3B792AA4CC34C50BE@Kevin> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6838 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 thread-index: AcnDgYEDFvBaiy/RRZyWIAX6ska5Pw== Importance: Normal X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [Grammatica-users] Internal Error, Grammatica 1.5 X-BeenThere: grammatica-users@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: grammatica-users@nongnu.org List-Id: grammatica-users.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Apr 2009 19:35:49 -0000 Hi, I'm trying out Grammatica and liking it, and being new to it I quickly tripped it up with some malformed input. Anyway, in 1.5 this test case: %header% GRAMMARTYPE = "LL" %tokens% DOC_LINE = <<'**' any* eos>> generates this output: 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: net.percederberg.grammatica.GrammarException: token 'DOC_LINE' is invalid, as regular expression contains error(s): Dangling meta character '*' near index 2 '**' any* eos ^, on line 8 at net.percederberg.grammatica.Grammar.createTokenizer(Grammar.java:229) at net.percederberg.grammatica.Grammatica.debug(Grammatica.java:423) at net.percederberg.grammatica.Grammatica.main(Grammatica.java:170) Tool completed with exit code 2 Just passing it on, thanks! Kevin From MAILER-DAEMON Wed Apr 22 16:20:29 2009 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Lwivl-0004JZ-BV for mharc-grammatica-users@gnu.org; Wed, 22 Apr 2009 16:20:29 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lwivi-0004I7-Vz for grammatica-users@nongnu.org; Wed, 22 Apr 2009 16:20:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lwivh-0004Gq-9U for grammatica-users@nongnu.org; Wed, 22 Apr 2009 16:20:26 -0400 Received: from [199.232.76.173] (port=52920 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lwivh-0004Gk-1d for grammatica-users@nongnu.org; Wed, 22 Apr 2009 16:20:25 -0400 Received: from qw-out-1920.google.com ([74.125.92.147]:42397) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lwivg-0008IW-Q4 for grammatica-users@nongnu.org; Wed, 22 Apr 2009 16:20:24 -0400 Received: by qw-out-1920.google.com with SMTP id 4so134501qwk.4 for ; Wed, 22 Apr 2009 13:20:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=jmoSMNQqjBb3zbY2z+0mVRqQC+8VBmWb72KCtXz7Mv8=; b=sbUUED4gj92UwLKn4R1FPvl1gzFfrhBwamAc7ORPvpDT0L4WyywahgYTpeqHJ/Fbtl YZUjY+PutfoawjKI5WnYqLLe6OLoWn6ZhA7tmHUTEiN2Vq1etf4KrvquC8zwhtiFBqBY Hob39Bfr8NSDg7WqpkcD142toIlQ1pVqW83dE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=DZOfYs1nLyvFjgJkJgHNcLUbOfGdyYtHAM6MnsYSYwKLxpMUY7T1QBqM/AQQov3s9y qeYiID0+ypTBTsQMGmmDAG8DrOH4YtN87zRLGlbRc0OxYzdJiBmpjv3DW8JRrysneFSy MUmXPKRXEGBVBZBUe+EGrMnLfy+t62ua6Z2l0= MIME-Version: 1.0 Sender: cederberg@gmail.com Received: by 10.229.82.9 with SMTP id z9mr198140qck.79.1240431623463; Wed, 22 Apr 2009 13:20:23 -0700 (PDT) In-Reply-To: <784C3BE936164FC3B792AA4CC34C50BE@Kevin> References: <784C3BE936164FC3B792AA4CC34C50BE@Kevin> Date: Wed, 22 Apr 2009 22:20:23 +0200 X-Google-Sender-Auth: db2cccac01a2c432 Message-ID: <39fd93d80904221320i3a08094dt45612ff084a97f80@mail.gmail.com> Subject: Re: [Grammatica-users] Internal Error, Grammatica 1.5 From: Per Cederberg To: grammatica-users@nongnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: grammatica-users@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: grammatica-users@nongnu.org List-Id: grammatica-users.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Apr 2009 20:20:27 -0000 Thanks for the bug report. It is really the error message that is in error here it seems, since it should just complain about invalid regular expression syntax: '**' any* eos isn't a valid regexp, but this would be: '\*\*' any\* eos But perhaps you mean to match two * characters and then read until end of l= ine: \*\*[^\n]* Cheers, /Per On Wed, Apr 22, 2009 at 9:35 PM, Kevin wrote: > Hi, I'm trying out Grammatica and liking it, and being new to it I quickl= y > tripped it up with some malformed input. =C2=A0Anyway, in 1.5 this test c= ase: > > =C2=A0%header% > > =C2=A0GRAMMARTYPE =3D "LL" > > =C2=A0%tokens% > > =C2=A0DOC_LINE =C2=A0 =C2=A0 =C2=A0 =C2=A0=3D <<'**' any* eos>> > > generates this output: > > INTERNAL ERROR: An internal error in Grammatica has been found. > =C2=A0 =C2=A0Please report this error to the maintainers (see the web > =C2=A0 =C2=A0site for instructions). Be sure to include the Grammatica > =C2=A0 =C2=A0version number, as well as the information below: > > net.percederberg.grammatica.GrammarException: token 'DOC_LINE' is invalid= , > as regular expression contains error(s): Dangling meta character '*' near > index 2 > '**' any* eos > =C2=A0^, on line 8 > =C2=A0 =C2=A0 =C2=A0 =C2=A0at > net.percederberg.grammatica.Grammar.createTokenizer(Grammar.java:229) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at net.percederberg.grammatica.Grammatica.debu= g(Grammatica.java:423) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at net.percederberg.grammatica.Grammatica.main= (Grammatica.java:170) > > Tool completed with exit code 2 > > > Just passing it on, thanks! > > Kevin > > > > > _______________________________________________ > Grammatica-users mailing list > Grammatica-users@nongnu.org > http://lists.nongnu.org/mailman/listinfo/grammatica-users > From MAILER-DAEMON Wed Apr 22 16:25:34 2009 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Lwj0g-0006DK-Lk for mharc-grammatica-users@gnu.org; Wed, 22 Apr 2009 16:25:34 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lwj0f-0006DD-4n for grammatica-users@nongnu.org; Wed, 22 Apr 2009 16:25:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lwj0a-0006Ce-P1 for grammatica-users@nongnu.org; Wed, 22 Apr 2009 16:25:32 -0400 Received: from [199.232.76.173] (port=48947 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lwj0a-0006Cb-Du for grammatica-users@nongnu.org; Wed, 22 Apr 2009 16:25:28 -0400 Received: from mail-gx0-f176.google.com ([209.85.217.176]:62511) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lwj0a-0000ep-2p for grammatica-users@nongnu.org; Wed, 22 Apr 2009 16:25:28 -0400 Received: by gxk24 with SMTP id 24so375944gxk.10 for ; Wed, 22 Apr 2009 13:25:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=ZtYUAHnXdV/C+qpV1JBRfLosvxCCM8teNYKsiZSgje0=; b=ApA2UeB+5YqDG3OoiAPf+apZF0/Cn1skR2qrvCMMCEeSMBodx+QJsVl/EBTeD0NciV cKFLHHK0KBfFWK82khwEDFSU0+lyKym3iHjmzwx1wuylWsGHuZ2bNDfF195HYC0EpP53 8plsXZrJlWx3gs75X+uirH4HkM0CDG80GG9Bw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type; b=Gwj5BQBy96awi5vL8XM1javwamssSHxrX2EhtxV/zVPfgLgB0/sa4vQyar80+f50SZ TfqyAro2ZpjDEWQ7KEPaapp8djMavWRQ+qi/1j45/iLAOIDzNf+9ooozjA6ws3P0l7Wi hzptDyvIVxDXsgdfxH87PM7FHZsCZHETJP63s= MIME-Version: 1.0 Received: by 10.150.133.18 with SMTP id g18mr431220ybd.57.1240431926968; Wed, 22 Apr 2009 13:25:26 -0700 (PDT) In-Reply-To: <39fd93d80904221320i3a08094dt45612ff084a97f80@mail.gmail.com> References: <784C3BE936164FC3B792AA4CC34C50BE@Kevin> <39fd93d80904221320i3a08094dt45612ff084a97f80@mail.gmail.com> Date: Wed, 22 Apr 2009 22:25:26 +0200 Message-ID: <99d315770904221325v538e0f27v1ea64f27c1dce846@mail.gmail.com> Subject: Re: [Grammatica-users] Internal Error, Grammatica 1.5 From: Leszek Doniec To: grammatica-users@nongnu.org Content-Type: multipart/alternative; boundary=000e0cd4856460054304682a9046 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: grammatica-users@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: grammatica-users@nongnu.org List-Id: grammatica-users.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Apr 2009 20:25:33 -0000 --000e0cd4856460054304682a9046 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Per, you are really fast :) Cheers, Leszek 2009/4/22 Per Cederberg > Thanks for the bug report. It is really the error message that is in > error here it seems, since it should just complain about invalid > regular expression syntax: > > '**' any* eos > > isn't a valid regexp, but this would be: > > '\*\*' any\* eos > > But perhaps you mean to match two * characters and then read until end of > line: > > \*\*[^\n]* > > Cheers, > > /Per > > On Wed, Apr 22, 2009 at 9:35 PM, Kevin wrote: > > Hi, I'm trying out Grammatica and liking it, and being new to it I > quickly > > tripped it up with some malformed input. Anyway, in 1.5 this test case: > > > > %header% > > > > GRAMMARTYPE = "LL" > > > > %tokens% > > > > DOC_LINE = <<'**' any* eos>> > > > > generates this output: > > > > 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: > > > > net.percederberg.grammatica.GrammarException: token 'DOC_LINE' is > invalid, > > as regular expression contains error(s): Dangling meta character '*' near > > index 2 > > '**' any* eos > > ^, on line 8 > > at > > net.percederberg.grammatica.Grammar.createTokenizer(Grammar.java:229) > > at > net.percederberg.grammatica.Grammatica.debug(Grammatica.java:423) > > at > net.percederberg.grammatica.Grammatica.main(Grammatica.java:170) > > > > Tool completed with exit code 2 > > > > > > Just passing it on, thanks! > > > > Kevin > > > > > > > > > > _______________________________________________ > > Grammatica-users mailing list > > Grammatica-users@nongnu.org > > http://lists.nongnu.org/mailman/listinfo/grammatica-users > > > > > _______________________________________________ > Grammatica-users mailing list > Grammatica-users@nongnu.org > http://lists.nongnu.org/mailman/listinfo/grammatica-users > --000e0cd4856460054304682a9046 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Per,

you are really fast :)

Che= ers,
Leszek

2009/4/22 Per Ceder= berg <per@perc= ederberg.net>
Thanks for the bug report. It is really the= error message that is in
error here it seems, since it should just complain about invalid
regular expression syntax:

=A0 =A0'**' any* eos

isn't a valid regexp, but this would be:

=A0 =A0'\*\*' any\* eos

But perhaps you mean to match two * characters and then read until end of l= ine:

=A0 =A0\*\*[^\n]*

Cheers,

/Per

On Wed, Apr 22, 2009 at 9:35 PM, Kevin <kevin@kelleysoft.com> wrote:
> Hi, I'm trying out Grammatica and liking it, and being new to it I= quickly
> tripped it up with some malformed input. =A0Anyway, in 1.5 this test c= ase:
>
> =A0%header%
>
> =A0GRAMMARTYPE =3D "LL"
>
> =A0%tokens%
>
> =A0DOC_LINE =A0 =A0 =A0 =A0=3D <<'**' any* eos>> >
> generates this output:
>
> INTERNAL ERROR: An internal error in Grammatica has been found.
> =A0 =A0Please report this error to the maintainers (see the web
> =A0 =A0site for instructions). Be sure to include the Grammatica
> =A0 =A0version number, as well as the information below:
>
> net.percederberg.grammatica.GrammarException: token 'DOC_LINE'= is invalid,
> as regular expression contains error(s): Dangling meta character '= *' near
> index 2
> '**' any* eos
> =A0^, on line 8
> =A0 =A0 =A0 =A0at
> net.percederberg.grammatica.Grammar.createTokenizer(Grammar.java:229)<= br> > =A0 =A0 =A0 =A0at net.percederberg.grammatica.Grammatica.debug(Grammat= ica.java:423)
> =A0 =A0 =A0 =A0at net.percederberg.grammatica.Grammatica.main(Grammati= ca.java:170)
>
> Tool completed with exit code 2
>
>
> Just passing it on, thanks!
>
> Kevin
>
>
>
>
> _______________________________________________
> Grammatica-users mailing list
> Grammatica-users@nongnu= .org
> http://lists.nongnu.org/mailman/listinfo/grammatica-users=
>


_______________________________________________
Grammatica-users mailing list
Grammatica-users@nongnu.org<= /a>
http://lists.nongnu.org/mailman/listinfo/grammatica-users<= br>

--000e0cd4856460054304682a9046--