11About
22-----
3- This package provides tools to (imperfectly) translate java source
3+ This package provides tools to (imperfectly) translate Java source
44code to python source code.
55
66
7- Build
8- -----
9- To build the code, install Python_ 2.5 or newer, and install PyAntlr_.
10- Then run "make" in the top of the package.
11-
12- .. _Python: http://www.python.org/
13- .. _PyAntlr: http://www.antlr.org/
14-
15-
167Install
178-------
9+ Before you install the package, make sure you have Python_ 2.5 or
10+ newer, and that you have PyAntlr_.
1811
19- To install the package and the scripts into your system, then as the super user, run:
12+ To install the package and the scripts into your system, then as the
13+ super user, run:
2014
2115 $ python setup.py install
2216
23- The setup script will install the java2python package in
24- $PYTHONHOME/site-packages, and install the scripts into a bin
25- directory.
26-
2717
2818Use
2919---
30- To use the "java_to_python" script, either make and install the
31- package (as per above), or adjust PYTHONPATH (and possibly PATH) to
32- include the source directories. Then run the script like so:
20+ Run the script like so:
21+
22+ $ j2py -i input_file.java
3323
34- $ java_to_python -i input_file.java -o output_file.py
24+ Or:
25+
26+ $ j2py -i input_file.java -o output_file.py
27+
28+ The script will read from stdin when no input files are given:
29+
30+ $ j2py < some_file.java
3531
3632The script has configuration options that you can view:
3733
38- $ java_to_python -h
34+ $ j2py -h
35+
36+ You can customize the code generation via configuration modules. Read
37+ more about them on the wiki_.
3938
4039
4140Feedback
4241--------
43- Drop me a note if you're so inclined: troy@gci.net.
42+ Drop me a note if you're so inclined: troy@gci.net.
43+
44+
45+ .. _Python: http://www.python.org/
46+ .. _PyAntlr: http://www.antlr.org/
47+ .. _wiki: http://code.google.com/p/java2python/w/list
0 commit comments