[Bug 1373] [XQuery] some editorial comments on A.1 EBNF (productions)

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





------- Additional Comments From jmdyck@ibiblio.org  2005-07-07 19:27 -------
Re changing capitalization:
Note that, with the XQuery grammar, there's a subtlety in determining whether a
symbol derives a regular language. For example, consider ModuleDecl:
    ModuleDecl ::= "module" "namespace" NCName "=" URILiteral Separator
All the symbols on the RHS derive regular languages, and this rule merely
concatenates them, so it would appear to derive a regular language also.
However, because implicit whitespace is allowed/required between those symbols,
and because that can include comments, and because comments nest, the language
derived by ModuleDecl is actually non-regular.

Received on Thursday, 7 July 2005 19:27:20 UTC