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

for example: ``` import sudoku.SudokuBoardGenerator; import sudoku.SudokuFile; public class BTSolverExample { public static void main(String[] args) { SudokuFile sf = SudokuBoardGenerator.generateBoard(9, 3, 3, 12); ``` will convert to: ``` import...

I get this exception while installing on mac via the command: `sudo pip install java2python` (I see the same problem without sudo) ``` byte-compiling /Library/Python/2.7/site-packages/java2python/mod/transform.py to transform.pyc running install_data creating...

Faced an issue with antlr not found, direct quick fix available

A little problem translating array initializers. This Java code: ``` java public class XParser extends BaseParser { private static final char[] MYCHARARR = new char[] { 'a', 'b', 'c', 'd'...

Here is another case. Is there anyway we can help to fix them ? ``` java if (a > 1) { # comment from java code (maybe a todo) }...

Here is another one. I don't know if this comes from ANTLR, or is something that could be solved here. The Java code: ``` java if (condition): myArr[count++] = index;...

Hello, I'll put some feed back here to some missing conversions. I hope it can be useful. A java code like this: ``` java int amountRead; while((amountRead = is.read(buffer, 0,...

I was trying to convert some old Java class to python using your utility and for the most part it worked awesome! However, these were a couple of issues: 1....

As in the title, the parser generally swaps the left and right operands of "" if the right operand is a constant. ``` java class ConditionalOperands { public static void...

For loops without block scopes are now supported. This also avoids an error/abort when encountering such cases.