Re: [Turtle] EBNF error? (decimal and integer)

On Wed, Mar 30, 2011 at 9:41 PM, Peter Frederick Patel-Schneider <
pfps@research.bell-labs.com> wrote:

> From: Gavin Carothers <gavin@topquadrant.com>
> Subject: [Turtle] EBNF error? (decimal and integer)
> Date: Wed, 30 Mar 2011 17:32:18 -0500
>
> > Had a bit more confusion regarding integer and decimal. From the
> > starting point:
> > http://www.w3.org/TeamSubmission/turtle/#sec-grammar-grammar
> >
> > [16] integer ('-' | '+') ? [0-9]+
> > [18] decimal ('-' | '+')? ( [0-9]+ '.' [0-9]* | '.' ([0-9])+ | ([0-9])+ )
> >
> > Sure looks (and I interpreted as) as if those both match the same
> > string. Happy to be told I'm just reading it wrong.
> >
> > Cheers,
> > Gavin
>
> Looks like it to me as well.  I expect that the production for decimal
> was derived from the production for double
>
> My suggested fix would be
>
> [16] integer ('-' | '+') ? [0-9]+
> [18] decimal ('-' | '+')? ( [0-9]+ '.' [0-9]* | '.' ([0-9])+  )
>
> But wait, this has already been done, in effect, in the newer version at
>
> http://www.w3.org/2010/01/Turtle/
>
> peter
>
>
Was just about to point this out myself.  Both documents are listed as task
force inputs at

http://www.w3.org/2011/rdf-wg/wiki/Inputs_Turtle

It's potentially confusing to have both listed.  Can we agree to take the
Jan 2010 editor's draft as the primary starting point for discussion?

-Alex

Received on Thursday, 31 March 2011 02:05:38 UTC