W3C home > Mailing lists > Public > public-qt-comments@w3.org > February 2004

RE: [XQuery] A.1.1 Grammar Notes: parens

From: Michael Kay <mhk@mhk.me.uk>
Date: Mon, 16 Feb 2004 10:22:44 -0000
To: "'Michael Dyck'" <jmdyck@ibiblio.org>, <public-qt-comments@w3.org>
Message-ID: <000001c3f476$d39017e0$6401a8c0@pcukmka>

I can't see why the note is there at all. Distinguishing "(" from "(:"
is no different from distinguishing "<" from "<<" or child:x from
child::x.

Michael Kay

> 
> XQuery 1.0: An XML Query Language
> W3C Working Draft 12 November 2003
> 
> A.1.1 Grammar Notes
> grammar-note: parens
> 
> "A look-ahead of one character is required to distinguish 
> function patterns from a QName followed by a comment."
> 
>     Change "comment" to "comment, pragma, or extension".
> 
> "For example:
>     address (: this may be empty :)
> may be mistaken for a call to a function named "address" 
> unless this lookahead is employed."
> 
>     It sounds like this lookahead would have to be 
> incorporated into the
>     operation of the A.2.2 machine. If so, that's another way in which
>     A.2.2 is under-defined (see
>     
> http://lists.w3.org/Archives/Public/public-qt-comments/2004Feb
/0348.html).

-Michael Dyck
Received on Monday, 16 February 2004 05:22:06 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:17 UTC