|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Implementing XPath 2.0Hey there, I'm working on a project that needs to implement XPath. Anyways, I'm in the midst of pulling it into my project, and I thought I would put it out there if anyone else needs an XPath 2.0 implementation. I have yet to put it in a git repo, or anything. But if you find it useful, have at it. Let me know how you fare. And I'll be making modifications, in which case, I'll post those. Cheers Tim __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ SableCC-Discussion mailing list SableCC-Discussion@... http://lists.sablecc.org/listinfo/sablecc-discussion |
||||||||
|
|
Re: Implementing XPath 2.0Btw, where do I submit grammars for SableCC 3.x? I got around to finishing an XPath 2.0 grammar. Feel free to use / modify it as you see fit. There's a project page here (see link). Get the project (using git): git clone http://repo.or.cz/r/xpath20. Build: ant clean compile-src Run: · (bash - Terminate input with Ctrl-D Ctrl-D) run.sh · (dos - Terminate input with Ctrl-M Ctrl-Z Ctrl-M) java -classpath build/src;build/gen/;lib/ Some Test input: · ./child::node()[ 12 ] · //system/application · ./child::node()[ 1
]/child::service/child::port/ · /descendant-or-self::element() · /GPS/memory[text()="64MB"] · for $i in (10, 20), $j in (1, 2) return ( $i + $j ) Known Issues: · can’t use ‘1’ or ‘-‘ in tag names · an ‘if’ statement requires a corresponding ‘else’ Hope it helps. Cheers. Tim From: Timothy Washington <timothyjwashington@...> To: sablecc-discussion@... Sent: Sunday, October 19, 2008 8:37:24 PM Subject: Implementing XPath 2.0 Hey there, I'm working on a project that needs to implement XPath. Anyways, I'm in the midst of pulling it into my project, and I thought I would put it out there if anyone else needs an XPath 2.0 implementation. I have yet to put it in a git repo, or anything. But if you find it useful, have at it. Let me know how you fare. And I'll be making modifications, in which case, I'll post those. Cheers Tim
|
_______________________________________________ SableCC-Discussion mailing list SableCC-Discussion@... http://lists.sablecc.org/listinfo/sablecc-discussion
|
|
Re: Implementing XPath 2.0You could simply add a page for your grammar in the SableCC 3 wiki and attach your grammar to it. Feel free to make it similar to http://sablecc3.sablecc.org/wiki/Java-1.5 . Then, add a link to this page on the SableCC grammar page http://sablecc.org/wiki/GrammarPage . All you need is a registration account on sablecc.org. If you don't already have one, you can create it with: http://sablecc.org/wiki/CreateAccount Thank you for the contribution! Etienne Timothy Washington wrote:
-- Etienne M. Gagnon, Ph.D. SableCC: http://sablecc.org _______________________________________________ SableCC-Discussion mailing list SableCC-Discussion@... http://lists.sablecc.org/listinfo/sablecc-discussion
|
| Re: Implementing XPath 2.0Ok thanks Etienne, I'll let everybody know when it's done. Tim From: Etienne M. Gagnon <egagnon@...> To: Discussion mailing list for the SableCC project <sablecc-discussion@...> Sent: Thursday, January 29, 2009 7:32:42 PM Subject: Re: Implementing XPath 2.0 Hi Tim, You could simply add a page for your grammar in the SableCC 3 wiki and attach your grammar to it. Feel free to make it similar to http://sablecc3.sablecc.org/wiki/Java-1.5 . Then, add a link to this page on the SableCC grammar page http://sablecc.org/wiki/GrammarPage . All you need is a registration account on sablecc.org. If you don't already have one, you can create it with: http://sablecc.org/wiki/CreateAccount Thank you for the contribution! Etienne Timothy Washington wrote:
-- Etienne M. Gagnon, Ph.D. SableCC: http://sablecc.org
|
_______________________________________________ SableCC-Discussion mailing list SableCC-Discussion@... http://lists.sablecc.org/listinfo/sablecc-discussion
|
|
Re: Implementing XPath 2.0Ok, so I put up initial versions of an XPath 2.0 grammar on these pages. Anyone is obviously welcome to make changes and improvements to the grammar. There's about 2 issues that I know about as it stands. http://sablecc.org/wiki/GrammarPage http://sablecc3.sablecc.org/wiki/XPath-2.0 The Sablecc project has really helped out my development in the last little bit. Hopefully this can help out others. Thanks Tim From: Etienne M. Gagnon <egagnon@...> To: Discussion mailing list for the SableCC project <sablecc-discussion@...> Sent: Thursday, January 29, 2009 7:32:42 PM Subject: Re: Implementing XPath 2.0 Hi Tim, You could simply add a page for your grammar in the SableCC 3 wiki and attach your grammar to it. Feel free to make it similar to http://sablecc3.sablecc.org/wiki/Java-1.5 . Then, add a link to this page on the SableCC grammar page http://sablecc.org/wiki/GrammabviourPage . All you need is a registration account on sablecc.org. If you don't already have one, you can create it with: http://sablecc.org/wiki/CreateAccount Thank you for the contribution! Etienne Timothy Washington wrote:
-- Etienne M. Gagnon, Ph.D. SableCC: http://sablecc.org Reclaim your name @ymail.com or @rocketmail.com. Get your new email address now! _______________________________________________ SableCC-Discussion mailing list SableCC-Discussion@... http://lists.sablecc.org/listinfo/sablecc-discussion |
| Free embeddable forum powered by Nabble | Forum Help |