I am thinking of applying java2python to the task of converting
the pdfbox Java library to Python. I am aware that after
automatic conversion quite a lot will have to be done manually,
still java2python can be very, very helpful.
As I can see, you are working quite actively on the project
at the moment. I have fetched the current SVN sources. They differ
pretty much from the java2python-0.2 release. I fetched them
in hope that the current version passes comments from Java code
to the generated Python code. Am I right that it does not do so, yet?
Another issue: I cannot find lexer.py and parser.py files
among the SVN sources although they were present inside
java2python-0.2.tar.gz. Should I generate them separately?
Best Regards
Ryszard
Hello Ryszard,
> I am thinking of applying java2python to the task of converting
> the pdfbox Java library to Python. I am aware that after
> automatic conversion quite a lot will have to be done manually,
> still java2python can be very, very helpful.
You might have a lot to change afterwards, maybe not. You should have
a huge head start in any case.
> As I can see, you are working quite actively on the project
> at the moment. I have fetched the current SVN sources. They differ
> pretty much from the java2python-0.2 release. I fetched them
> in hope that the current version passes comments from Java code
> to the generated Python code. Am I right that it does not do so, yet?
No comment handling in svn trunk. There are two huge technical
hurdles to comment handling in the trunk and they will probably never
get fixed.
Comment handling is one of the stumbling blocks with 0.3. I think
I've finally gotten past it by starting over with something completely
different. I've stopped working on 0.3 altogether and am now working
on the 0.4 branch in hopes of getting something released. And just
earlier today I got the comment handling in. It's still not perfect,
but it's much, much better than all previous attempts.
> Another issue: I cannot find lexer.py and parser.py files
> among the SVN sources although they were present inside
> java2python-0.2.tar.gz. Should I generate them separately?
Yes, with svn on trunk, you need to run make to generate the lexer and
parser modules. That's no longer the case with 0.4; generated code is
included in the branch.
troy