-
Notifications
You must be signed in to change notification settings - Fork 50
Java2Rusthon
brett hartshorn edited this page Feb 20, 2015
·
2 revisions
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
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