Skip to content
brett hartshorn edited this page Feb 20, 2015 · 2 revisions

Experimental - Java to Rusthon Translation

you will need our fork of java2python configured to output Rusthon syntax. requires python2.

cd
git clone https://github.com/rusthon/java2python.git
cd java2python
sudo python setup.py install
cd
wget http://www.antlr3.org/download/antlr-3.1.3.tar.gz
tar xfz antlr-3.1.3.tar.gz
cd antlr-3.1.3/runtime/Python/
sudo python setup.py install

Java to Rusthon

rusthon.py will convert java code in a markdown using java2python, if it is tagged with @java2rusthon. classes from java can be used from Rusthon code with the c++ backend.

./rusthon.py ./examples/hello_java.md

https://github.com/rusthon/Rusthon/blob/master/examples/hello_java.md

Sidebar

Clone this wiki locally