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@192.168.27.2>


Hi,

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?


regards,
benjamin

--
Benjamin Nowack

Kruppstr. 100
45145 Essen, Germany
http://www.bnode.org/
Received on Tuesday, 13 December 2005 17:41:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:49 GMT