W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2003

Re: Minor Comments on Polishing ExprComment

From: <scott_boag@us.ibm.com>
Date: Thu, 11 Sep 2003 08:32:52 -0400
To: "Sean B. Palmer" <sean@mysterylights.com>
Cc: public-qt-comments@w3.org
Message-ID: <OF78B55463.C8C0D8B2-ON85256D9E.00131CF6-85256D9E.0044EAA2@lotus.com>
Hi Sean.  Thanks for the feedback.

Isn't your issue covered by the longest token rule ("When tokenizing, the 
longest possible match that is valid in the current lexical state is 
preferred .")?  I understand that means you can't have a comment opening 
followed immediately by a colon... but I think the only thing to do for 
that is to change the characters used in one of the delimiters.  It's late 
at night and I might be misreading your note, so forgive me if I'm not on 
target.

> (Moreover, since Pragma and MUExtension seem to follow a common idiom, 
and
> one which may well be extended in future versions of XQuery, perhaps 
it'd
> be wiser to group them under a common Extension production.)

Makes sense to me.  I would be open to that. 

-scott

public-qt-comments-request@w3.org wrote on 09/10/2003 10:20:15 AM:

> 
> The ExprComment production [1] of XQuery also matches that of Pragma and
> MUExtension. Since these can occur in the same lexical context (state) 
as
> one another, I suggest that one of the following routes be taken:
> 
> * ExprComment be re-written to explicitly disallow Pragma and 
MUExtension.
> (Moreover, since Pragma and MUExtension seem to follow a common idiom, 
and
> one which may well be extended in future versions of XQuery, perhaps 
it'd
> be wiser to group them under a common Extension production.)
> * A note added that parsers must look ahead when matching ExprComment's
> opening terminal, so that they don't pick up a Pragma or MUExtension
> production instance.
> 
> Here is a possibility for re-written comment and extension productions,
> should that route be taken:
> 
> ExprComment ::= "(:" ExprCommentContent ":)"
> Extension ::= "(::" QName QName ExtensionContent "::)"
> ExprCommentContent ::= (Char - ":") (Char* - ":)")
> ExtensionContent ::= ((Char - ':') | (':' (Char - ':')))*
> 
> Colophon, from #rdfig on Freenode:
> 
> <darobin> bah, python has bindings to libxslt, what more do you need ? 
:)
> <sbp`> that's odd. I'm starting to see smileys as XQuery comments
> 
> Cheers,
> 
> [1] http://www.w3.org/TR/2003/WD-xquery-20030822/#comments
> - W3C Working Draft 22 August 2003
> 
> -- 
> Sean B. Palmer, <http://purl.org/net/sbp/>
> "phenomicity by the bucketful" - http://miscoranda.com/
> 
Received on Thursday, 11 September 2003 08:34:35 GMT

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