Introducing java2nrx

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Introducing java2nrx

Marc Remes-2
The avid watcher on http://kenai.com/projects/netrexx/sources/netrexxc-repo/show/contrib might have noticed.
René was so kind to post my contribution of the translator's translator.

Java2nrx tries to translate Java to NetRexx, opening up a huge number of Java sample code to the NetRexx developer.

The code is based on http://code.google.com/p/javaparser, only DumpVisitor.java of the original code is changed.

Note the code is not perfect, pretty standard Java code translates well, but some of the newer stuff - enum,
annotations... - are not handled at all, others - unary expressions and conditions - are attempted but do not translate
well. These are marked with **nonrx**.

As soon as I find the time, I will set up a SVN repository on the kenai.com/projects/netrexx/sources/svn-contrib
repository where we all can submit fixes/enhancements, which later can be picked up by the RexxLA.

Check out http://kenai.com/projects/netrexx/sources/netrexxc-repo/show/contrib/java2nrx

Marc

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Introducing java2nrx

Robert L Hamilton
Which gives us an easy way to test our Nrx2Java routines,, Maybe

Bob Hamilton

On Mon, Oct 3, 2011 at 4:32 AM, Marc Remes <[hidden email]> wrote:
The avid watcher on http://kenai.com/projects/netrexx/sources/netrexxc-repo/show/contrib might have noticed.
René was so kind to post my contribution of the translator's translator.

Java2nrx tries to translate Java to NetRexx, opening up a huge number of Java sample code to the NetRexx developer.

The code is based on http://code.google.com/p/javaparser, only DumpVisitor.java of the original code is changed.

Note the code is not perfect, pretty standard Java code translates well, but some of the newer stuff - enum, annotations... - are not handled at all, others - unary expressions and conditions - are attempted but do not translate well. These are marked with **nonrx**.

As soon as I find the time, I will set up a SVN repository on the kenai.com/projects/netrexx/sources/svn-contrib repository where we all can submit fixes/enhancements, which later can be picked up by the RexxLA.

Check out http://kenai.com/projects/netrexx/sources/netrexxc-repo/show/contrib/java2nrx

Marc

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/



_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Introducing java2nrx

Fernando Cassia-2
Now all we need is a Javascript to NetRexx converter :)

FC

On Mon, Oct 3, 2011 at 12:54, Robert Hamilton <[hidden email]> wrote:
> Which gives us an easy way to test our Nrx2Java routines,, Maybe
>
> Bob Hamilton

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Introducing java2nrx

Fernando Cassia-2
On Mon, Oct 3, 2011 at 14:05, Fernando Cassia <[hidden email]> wrote:
> Now all we need is a Javascript to NetRexx converter :)

or NetRexx to Javascript.

FC

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/