Changes between Version 7 and Version 8 of j2p
- Timestamp:
- 06/07/23 14:19:56 (17 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
j2p
v7 v8 2 2 3 3 This tool can translate java programs into python programs. 4 This is a complex mechanism and still somewhat experimental.4 This is a complex mechanism and still experimental/in development. 5 5 It can translate both single file java programs as multi-file projects. 6 6 It supports translating calls to external libraries. 7 It generates a zip file containing the translated files plus installation directions, ready to be used with the "pip install" command; 8 We also have a library supporting running these zip files from java. 7 9 8 10 There are a number of packages inside this project, because this translator has a modular setup: … … 29 31 30 32 == Usage 31 Comments can contain python code if the block starts with {{{#PY}}}. This code replaces the entire object (if/case/while block; statement) that follows the comment. 33 34 == Overriding the translation 35 Comments can contain python code to override the automatic code, if the block starts with {{{#PY}}}. This code replaces the entire object (if/case/while block; statement) that follows the comment. 32 36 33 37 Python has strict requirements regarding indentation. To make this possible, we need to be strict about indentation as well. In a single line python comment, the code must look exactly like