[Bug 1376] New: [XQuery] some editorial comments on A.1.1 grammar-note: parens

http://www.w3.org/Bugs/Public/show_bug.cgi?id=1376

           Summary: [XQuery] some editorial comments on A.1.1 grammar-note:
                    parens
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery
        AssignedTo: chamberl@almaden.ibm.com
        ReportedBy: jmdyck@ibiblio.org
         QAContact: public-qt-comments@w3.org


A.1.1 grammar-note: parens

"A look-ahead of one character is required to distinguish function patterns"
    Change "function patterns" to "a FunctionCall".

"from a QName or keyword followed by a Pragma, or Comment"
    Delete comma.

"for (: whom the bell :) $tolls = 3 return $tolls"
    This example is illegal. Change "=" to "in" ?

(this note)
    What's so special about this particular case that it deserves to be pointed
    out? There are lots of other cases that require lookahead (in a lookahead-
    based parser), and more lookahead than just one character. I think this
    grammar-note should be dropped.

Received on Wednesday, 11 May 2005 07:30:33 UTC