• Home
Name
Date
Size
#Lines
LOC

..--

antlr3/03-May-2024-9,4345,694

dist/03-May-2024-

tests/03-May-2024-15,71911,067

unittests/03-May-2024-3,0502,159

AUTHORSD03-May-2024147 32

ChangeLogD03-May-20241.3 KiB3924

LICENSED03-May-20241.4 KiB2723

MANIFEST.inD03-May-202437 31

READMED03-May-20243.3 KiB9668

TODOD03-May-20242.9 KiB8382

doxyfileD03-May-20249.8 KiB271267

ez_setup.pyD03-May-202411.2 KiB392296

hudson-build.shD03-May-20241.9 KiB7249

mkdoxy.shD03-May-2024414 2113

pylintrcD03-May-20249.1 KiB322234

setup.pyD03-May-20248.9 KiB301223

xmlrunner.pyD03-May-202412.2 KiB379294

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