Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
antlr3/ | 03-May-2024 | - | 9,434 | 5,694 | ||
dist/ | 03-May-2024 | - | ||||
tests/ | 03-May-2024 | - | 15,719 | 11,067 | ||
unittests/ | 03-May-2024 | - | 3,050 | 2,159 | ||
AUTHORS | D | 03-May-2024 | 147 | 3 | 2 | |
ChangeLog | D | 03-May-2024 | 1.3 KiB | 39 | 24 | |
LICENSE | D | 03-May-2024 | 1.4 KiB | 27 | 23 | |
MANIFEST.in | D | 03-May-2024 | 37 | 3 | 1 | |
README | D | 03-May-2024 | 3.3 KiB | 96 | 68 | |
TODO | D | 03-May-2024 | 2.9 KiB | 83 | 82 | |
doxyfile | D | 03-May-2024 | 9.8 KiB | 271 | 267 | |
ez_setup.py | D | 03-May-2024 | 11.2 KiB | 392 | 296 | |
hudson-build.sh | D | 03-May-2024 | 1.9 KiB | 72 | 49 | |
mkdoxy.sh | D | 03-May-2024 | 414 | 21 | 13 | |
pylintrc | D | 03-May-2024 | 9.1 KiB | 322 | 234 | |
setup.py | D | 03-May-2024 | 8.9 KiB | 301 | 223 | |
xmlrunner.py | D | 03-May-2024 | 12.2 KiB | 379 | 294 |
README
11) ABOUT 2======== 3 4This is the Python 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 Python 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: Currently the runtime library for V3.1 is not compatible with 18recognizers generated by ANTLR V3.0.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. 22It is still undetermined, if a future release of the V3.1 runtime will be 23compatible with V3.0.x recognizers or if future runtimes V3.2+ will be 24compatible with V3.1 recognizers. 25Sorry for the inconvenience. 26 27 283) DOWNLOAD 29=========== 30 31This runtime is part of the ANTLR distribution. The latest version can be found 32at <http://www.antlr.org/download.html>. 33 34If you are interested in the latest, most bleeding edge version, have a look at 35the perforce depot at <http://fisheye2.cenqua.com/browse/antlr>. There are 36tarballs ready to download, so you don't have to install the perforce client. 37 38 394) INSTALLATION 40=============== 41 42Just like any other Python package: 43$ python setup.py install 44 45See <http://docs.python.org/inst/> for more information. 46 47If this fails due to an obscure setuptools error, you may need a newer bootstrap 48script (ez_setup.py): see <https://pypi.python.org/pypi/setuptools/> for full 49setuptools installation instructions, or simply download the given ez_setup.py 50script, place it in this folder, and run the above setup.py command. 51 52 535) DOCUMENTATION 54================ 55 56Documentation (as far as it exists) can be found in the wiki 57<http://www.antlr.org/wiki/display/ANTLR3/Antlr3PythonTarget> 58 59 606) REPORTING BUGS 61================= 62 63Please send bug reports to the ANTLR mailing list 64<http://www.antlr.org:8080/mailman/listinfo/antlr-interest> or 65<pink@odahoda.de>. 66 67Existing bugs may appear someday in the bugtracker: 68<http://www.antlr.org:8888/browse/ANTLR> 69 70 717) HACKING 72========== 73 74Only the runtime package can be found here. There are also some StringTemplate 75files in 'src/org/antlr/codegen/templates/Python/' and some Java code in 76'src/org/antlr/codegen/PythonTarget.java' (of the main ANTLR3 source 77distribution). 78 79If there are no directories 'tests' and 'unittests' in 'runtime/Python', you 80should fetch the latest ANTLR3 version from the perforce depot. See section 81DOWNLOAD. 82You'll need java and ant in order to compile and use the tool. 83Be sure to properly setup your CLASSPATH. 84(FIXME: is there some generic information, how to build it yourself? I should 85point to it to avoid duplication.) 86 87You can then use the commands 88$ python setup.py unittest 89$ python setup.py functest 90to ensure that changes do not break existing behaviour. 91 92Please send patches to <pink@odahoda.de>. For larger code contributions you'll 93have to sign the "Developer's Certificate of Origin", which can be found on 94<http://www.antlr.org/license.html> or use the feedback form at 95<http://www.antlr.org/misc/feedback>. 96