Menu

#3 comments can not appear everywhere

v1.0_(example)
open-fixed
Parser (3)
5
2005-05-06
2005-05-05
Anonymous
No

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>

Discussion

  • John Snelson

    John Snelson - 2005-05-06
    • status: open --> open-fixed
     
  • John Snelson

    John Snelson - 2005-05-06

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.