xquery / xquerydoc

xquerydoc - generate XQuery API documentation from your source code comments
https://github.com/xquery/xquerydoc
Other
38 stars 11 forks source link

Support XQuery 3.1 #34

Open rhdunn opened 7 years ago

rhdunn commented 7 years ago

Running xquerydoc on a file that contains XQuery 3.1 constructs results in a lexical error when using the raw output, and an empty error module when using the xqdoc and html outputs. For example:

module  namespace array = "http://www.w3.org/2005/xpath-functions/array";
declare function array:sort($array as array(*)) as array(*) external;

This fails at:

declare function array:sort($array as array(*)) as array(*) external;
                                           ^

with:

lexical analysis failed while expecting '(:'
after successfully scanning 1 characters
at line 12, column 78 ...(*)) as array(*) ...

This is because it is missing the AnyArrayTest ebnf construct from the XQuery 3.1 grammar (and the other XQuery 3.1 constructs).