W3C home > Mailing lists > Public > www-ql@w3.org > April to June 2002

RE: ambiguity in XQuery grammar

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Thu, 30 May 2002 20:23:25 +0200
Message-ID: <DFF2AC9E3583D511A21F0008C7E6210602679E41@daemsg02.software-ag.de>
To: Damien Fisher <damien@sodatech.com>, www-ql@w3.org
It is indeed an ambiguity, and I've been concerned about it too, though I
think it can be easily resolved by adding some kind of "greedy parsing" rule
akin to the "greedy tokenizing" rule.
 
Michael Kay

-----Original Message-----
From: Damien Fisher [mailto:damien@sodatech.com] 
Sent: 30 May 2002 07:40
To: www-ql@w3.org
Subject: ambiguity in XQuery grammar


There appears to be an ambiguity in the current draft specification's
grammar, which I was hoping someone could resolve for me.
 
Consider:
 
1 instance of xs:integer+ +1
 
Is this equivalent to:
 

(1 instance of xs:integer+) +1
 
or:
 
(1 instance of xs:integer) + (+1)
 
?
 
I would suggest changing the syntax for InstanceOfExpr so parentheses are
put around the SequenceType.
Received on Thursday, 30 May 2002 14:24:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 22 July 2006 00:10:18 GMT