W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > December 2005

trailing dot in grammar rule for decimals

From: Benjamin Nowack <bnowack@appmosphere.com>
Date: Tue, 13 Dec 2005 18:40:29 +0100
To: RDF DAWG comments list <public-rdf-dawg-comments@w3.org>
Message-ID: <PM-EH.20051213184029.968A9.2.1D@>


if I understand the current grammar entry 74 for decimals
correctly, then a trailing dot is allowed. In this case,
(and together with the optional dot in the final triple
of a graph pattern,) the 1000 in {?foo ?bar 1000.} could be
an integer or a decimal, and I'm not 100% sure which literal
("1000" or "1000.0") to generate during the parsing process.
Not allowing the trailing dot would make parsing numeric
literals a little bit simpler.

(I've checked the turtle and the n3 grammars, n3 does not
allow the trailing dot, turtle however seems to allow it.)

Or am I misreading the grammar rules?


Benjamin Nowack

Kruppstr. 100
45145 Essen, Germany
Received on Tuesday, 13 December 2005 17:41:29 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:52:07 UTC