W3C home > Mailing lists > Public > public-qt-comments@w3.org > June 2008

[Bug 5727] [XQuery] Syntax ambiguities with leading "/"

From: <bugzilla@wiggum.w3.org>
Date: Tue, 24 Jun 2008 22:31:02 +0000
To: public-qt-comments@w3.org
Message-Id: <E1KBH2U-0002bc-4r@wiggum.w3.org>


Michael Dyck <jmdyck@ibiblio.org> changed:

           What    |Removed                     |Added
                 CC|                            |jmdyck@ibiblio.org

--- Comment #6 from Michael Dyck <jmdyck@ibiblio.org>  2008-06-24 22:31:01 ---
> it does not clearly say how to handle
> operators like "-" or "+", which may be unary or binary.
> ...
> We would have to clarify the behavior with respect to unary
> operators, e.g. whether /-5 is interpreted as /(-5).

Note that there is no valid parse of /-5 in which the hyphen is a unary minus.
(If you try to make -5 a UnaryExpr, you find that a UnaryExpr can't be a
StepExpr.) So unary operators don't enter into it.

There's an EBNF-valid parse of /-5 as a ArithmeticExpr, so the only question
(for that case) is whether we allow it or not. (That is, whether we decree that
it violates some extra-grammatical constraint.) The Note in 3.2 suggests that
it's a parse error, but the leading-lone-slash constraint doesn't disallow it
(and has no reason to do so, since it poses no parsing difficulty).

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 24 June 2008 22:31:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:23 UTC