Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
antlr3/ | 03-May-2024 | - | 8,822 | 5,362 | ||
tests/ | 03-May-2024 | - | 14,105 | 10,494 | ||
unittests/ | 03-May-2024 | - | 2,954 | 2,086 | ||
.gitignore | D | 03-May-2024 | 21 | 5 | 4 | |
AUTHORS | D | 03-May-2024 | 260 | 7 | 5 | |
ChangeLog | D | 03-May-2024 | 2.1 KiB | 59 | 39 | |
LICENSE | D | 03-May-2024 | 1.4 KiB | 27 | 23 | |
README | D | 03-May-2024 | 2.9 KiB | 87 | 60 | |
doxyfile | D | 03-May-2024 | 9.8 KiB | 271 | 267 | |
ez_setup.py | D | 03-May-2024 | 11.2 KiB | 392 | 296 | |
mkdoxy.sh | D | 03-May-2024 | 414 | 21 | 13 | |
pylintrc | D | 03-May-2024 | 7.4 KiB | 254 | 172 | |
setup.py | D | 03-May-2024 | 8.5 KiB | 290 | 211 |
README
11) ABOUT 2======== 3 4This is the Python3 package 'antlr3', which is required to use parsers created 5by the ANTLR3 tool. See <http://www.antlr.org/> for more information about 6ANTLR3. 7 8 92) STATUS 10========= 11 12The Python3 target for ANTLR3 is still in beta. Documentation is lacking, some 13bits of the code is not yet done, some functionality has not been tested yet. 14Also the API might change a bit - it currently mimics the Java implementation, 15but it may be made a bit more pythonic here and there. 16 17WARNING: The runtime library is not compatible with recognizers generated by 18ANTLR versions preceding V3.4.x. If you are an application developer, 19then the suggested way to solve this is to package the correct runtime with 20your application. Installing the runtime in the global site-packages directory 21may not be a good idea. 22Sorry for the inconvenience. 23 24 253) DOWNLOAD 26=========== 27 28This runtime is part of the ANTLR distribution. The latest version can be found 29at <http://www.antlr.org/download.html>. 30 31If you are interested in the latest, most bleeding edge version, have a look at 32the git repository at <http://github.com/antlr/antlr3>. 33 34 354) INSTALLATION 36=============== 37 38Just like any other Python package: 39$ python3 setup.py install 40 41See <http://docs.python.org/inst/> for more information. 42 43If this fails due to an obscure setuptools error, you may need a newer bootstrap 44script (ez_setup.py): see <https://pypi.python.org/pypi/setuptools/> for full 45setuptools installation instructions, or simply download the given ez_setup.py 46script, place it in this folder, and run the above setup.py command. 47 48 495) DOCUMENTATION 50================ 51 52Documentation (as far as it exists) can be found in the wiki 53<http://www.antlr.org/wiki/display/ANTLR3/Antlr3Python3Target> 54 55 566) REPORTING BUGS 57================= 58 59Please file bug reports on github: <http://github.com/antlr/antlr3>. 60 61 627) HACKING 63========== 64 65Only the runtime package can be found here. There are also some StringTemplate 66files in 'src/org/antlr/codegen/templates/Python3/' and some Java code in 67'src/org/antlr/codegen/Python3Target.java' (of the main ANTLR3 source 68distribution). 69 70If there are no directories 'tests' and 'unittests' in 'runtime/Python3', you 71should fetch the latest ANTLR3 version from the perforce depot. See section 72DOWNLOAD. 73You'll need java and ant in order to compile and use the tool. 74Be sure to properly setup your CLASSPATH. 75(FIXME: is there some generic information, how to build it yourself? I should 76point to it to avoid duplication.) 77 78You can then use the commands 79$ python3 setup.py unittest 80$ python3 setup.py functest 81to ensure that changes do not break existing behaviour. 82 83Please send patches as pull requests on github. For larger code contributions 84you'll have to sign the "Developer's Certificate of Origin", which can be 85found on <http://www.antlr.org/license.html> or use the feedback form at 86<http://www.antlr.org/misc/feedback>. 87