It also has the XQuery 1.0 and 3.0 grammars already made as examples.
That gives you an XQuery parser written in XQuery - seems to work pretty
well.
John
--
John Snelson, Senior Engineer http://twitter.com/jpcs
MarkLogic Corporation http://www.marklogic.com
I'm finally taking a look at this. Wow, what a good find! This looks like
a perfect launching point for creating a Carrot parser.
Do you know if this tool is open-source? (I guess I don't care as long as
the web page stays up.)
Evan
----------------------------------------
David A. Lee
dl...@calldei.com
http://www.xmlsh.org
I personally would be inclined to compile to XSLT using XSLT, but that's
just me. I guess I like polluting things. ;-) (Mostly, I think XSLT will
be the quickest target language to implement because of its relatively
straightforward mappings to Carrot.)
I definitely like the idea of using an XQuery-based parser, because then,
as you point out, you could create a library for directly calling Carrot
modules in environments like MarkLogic.
Evan
https://github.com/evanlenz/Carrot/commit/d840a834cd52e0be876fcc13cbf9aea13
4ca73ab
I also generated XQuery- and Java-based parsers, if anyone wants to play
around with them. Here's a script for invoking the parser in MarkLogic
Server (it works!):
https://github.com/evanlenz/Carrot/blob/master/parser/parse.xqy
Evan
Sent from my iPad (excuse the terseness)
David A Lee
dl...@calldei.com