Hi,

I have been attempting to extend the xquery-grammar.jj file to support
JSONiq object constructor[1]. As I understand we need to create classes
that extends ASTNode class in the package org.apache.vxquery.xmlquery.ast
to be able to return ASTNode objects by the ObjectConstructor--currently it
returns nothing. I hope it needs to be discussed what classes to be
created. Correct me if I am mistaken.

[1] https://github.com/apache/vxquery/pull/44
<https://github.com/apache/vxquery/pull/40>

Thank you.

Yours sincerely,
Riyafa

On 17 May 2016 at 22:57, Preston Carman <[email protected]> wrote:

> As you (JSONiq GSOC students) look at extending the xquery-grammar.jj
> [1] file for JSONiq, just remember to check the specification for
> specifics [2]. The specification has a nice syntax block at the
> beginning of the construction chapter. Also, check out the JavaCC
> documentation [3] if you need to catch up on our parser.
>
> Post if you have any questions. Also, post the final pull request for
> the data model implementations.
>
> [1]
> https://github.com/apache/vxquery/blob/master/vxquery-core/src/main/javacc/xquery-grammar.jj
> [2]
> http://jsoniq.org/docs/JSONiqExtensionToXQuery/html-single/index.html#section-json-value-construction
> [3] https://javacc.java.net/
>



-- 
Riyafa Abdul Hameed
Undergraduate, University of Moratuwa

Email: [email protected]
Website: https://riyafa.wordpress.com/ <http://riyafa.wordpress.com/>
<http://facebook.com/riyafa.ahf>  <http://lk.linkedin.com/in/riyafa>
<http://twitter.com/Riyafa1>

Reply via email to