natural / java2python

Simple but effective library to translate Java source code to Python.
GNU Lesser General Public License v2.1
564 stars 243 forks source link

mechanism to force j2py to print what it's got? #68

Open tdiprima opened 4 years ago

tdiprima commented 4 years ago

Often, j2py will exit without printing python up to... wherever it's gotten up to before it errored. Equally often... we will get a chunk of Java code without context. Meaning, the variable declaration is missing (easy enough to fix), or worse... unknown package import, or something else that may not be necessarily be important to whatever we're trying to do.
I'd like a switch where I can say --ignore or --force to be able to see where j2py got up to. And I'll go ahead and fill in the blanks.

Possible?

(I wouldn't normally ask for something like this, but the program never successfully completes because I'm never given a full correct Java source.)