ANTLeRinator
Project description
ANTLeRinator is a Python utility package to help keeping components of ANTLR v4 in sync.
Requirements
Install
The quick way:
pip install antlerinator
Alternatively, by cloning the project and running setuptools:
python setup.py install
Usage
A common form of ANTLeRinator’s usage:
import antlerinator
import argparse
import subprocess
parser = argparse.ArgumentParser()
parser.add_argument('--antlr', default=antlerinator.antlr_jar_path)
args = parser.parse_args()
if (args.antlr == antlerinator.antlr_jar_path):
antlerinator.install(lazy=True)
subprocess.call(['java', '-jar', args.antlr])
Should there be need for manual jar installation, a helper script is available:
antlerinator-install
Copyright and Licensing
Licensed under the BSD 3-Clause License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
antlerinator-4.7.2.tar.gz
(4.1 kB
view hashes)