comments can not appear everywhere
Status: Pre-Alpha
Brought to you by:
jpcs
the parser does not acccept comments in some
queries. One valid example query that the parser
complains about the comment.
for $a in ( doc("tests/usecases my/bib.xml")/bib/book,
doc("tests/usecases my/bib.xml")//book ),
$b in doc("tests/usecases my/bib_1.xml")//book,
$c in ($a//title, $b)
where count($b/author[@lastname="John"]) = 5
and $a/name = $b/name
(: this is a comment in XQuery :)
and (some $b100 in $a/aaa satisfies ($b is $a))
return
<book-with-prices>
{
$c, $d
}
</book-with-prices>
Logged In: YES
user_id=1041934
This was a problem with lexing <QName "("> as a single
token. I have modified the parser, so that it is no longer
lexed as a single token. This has meant adding lookahead to
the StepExpr grammar production.