• Home
Name
Date
Size
#Lines
LOC

..--

antlr3/03-May-2024-8,8225,362

tests/03-May-2024-14,10510,494

unittests/03-May-2024-2,9542,086

.gitignoreD03-May-202421 54

AUTHORSD03-May-2024260 75

ChangeLogD03-May-20242.1 KiB5939

LICENSED03-May-20241.4 KiB2723

READMED03-May-20242.9 KiB8760

doxyfileD03-May-20249.8 KiB271267

ez_setup.pyD03-May-202411.2 KiB392296

mkdoxy.shD03-May-2024414 2113

pylintrcD03-May-20247.4 KiB254172

setup.pyD03-May-20248.5 KiB290211

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