completed A-620-4 (make Expr optional in a couple spots)

> A-620-4 Michael Dyck to resolve Bug 29185 by accepting the proposal.
i.e.:
> StringConstructorInterpolation ::= "`{" Expr? "}`"
> EnclosedExpr ::= "{" Expr? "}"

I've committed the requested changes to grammar-30
(grammar file, conversion-to-XQueryX code, applets).

The grammar changes will appear in the XQuery 3.1, XPath 3.1, Update 3.1
and Full Text 3.1 documents the next time they're built+committed.

However, this doesn't resolve the bug, as there are a few things left to do:

-- The XQuery/XPath 3.1 docs need to be modified to say what it means to
    omit the Expr in these contexts. (See subsequent discussion in the Bug.)

-- In QT3, in prod/DirElemContent.xml, test case K2-DirectConElemContent-26:
       <elem>content{}content</elem>
    needs to be split into pre-3.1 and 3.1+ versions.
    (I was somewhat surprised that that was the only test whose syntactic
    legality was changed by the grammar, so:)

-- We should probably have a couple tests where
       FunctionBody -> EnclosedExpr -> {}
    (This would be a syntax error for pre-3.1, okay for 3.1+).

-Michael

Received on Thursday, 22 October 2015 04:52:28 UTC