java2python icon indicating copy to clipboard operation
java2python copied to clipboard

Simple but effective library to translate Java source code to Python.

Results 51 java2python issues
Sort by recently updated
recently updated
newest added

Since also modified one file in antlr, so I added whole antlr 3. (Antlr4 and python3 doesn't work with Java2Python at its current stage). If you don't want to merge...

I thought I'd point java2python at toxiclibs and see what happens, unfortunately it gets stuck: ``` # hg clone https://bitbucket.org/postspectacular/toxiclibs ToneMap https://bitbucket.org/postspectacular/toxiclibs/src/689ddcd9bea39d1f8dddad26e971ae4c12b1198e/src.color/toxi/color/ToneMap.java?at=default Triggers ValueError: list.remove(x): x not in list #...

I managed to install j2py and also used it for single files. Is there a possibility to convert folders (all files with the folder and all subfolders within) like /src/...

Running `j2py` on a java file containing non ascii caracthers is failing: ``` Traceback (most recent call last): File "/usr/local/bin/j2py", line 120, in runTransform tree = buildAST(source) File "/usr/local/lib/python2.7/dist-packages/java2python/compiler/__init__.py", line...

Hello,I am confused how do you transformer System.out.println in Java into print in Python? formulating the corresponding relationship by people? or others.

Further describing what to do with ANTLR related errors

String pct = change[change.length - 1].trim(); into pct = change[len(change)].trim()

convert if ('%' == pct.charAt(pct.length() - 1)) {} into: if '%' == pct.charAt(1 - len(pct)):

I've seen String.length been translated to len(string) how about String.charAt into string[] and String.substring(b, e) into string[b:e] ?