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 performing a local install:
pip install .
Usage
A common form of ANTLeRinator’s usage:
import antlerinator
import argparse
import subprocess
assert antlerinator.__antlr_version__ is not None
parser = argparse.ArgumentParser()
antlerinator.add_antlr_argument(parser)
args = parser.parse_args()
antlerinator.process_antlr_argument(args)
subprocess.call(['java', '-jar', args.antlr])
Should there be need for downloading the ANTLR v4 tool jar manually, a helper script is available:
antlerinator-download
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-1!1.0.0.tar.gz
(10.3 kB
view hashes)
Built Distribution
Close
Hashes for antlerinator-1!1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d9dd10903986b2accfb7abcd1ffc7cec98c894d7263fe37b817c5e48514ee86 |
|
MD5 | 3de4b1a45a4ba7dbcc827164138829b3 |
|
BLAKE2b-256 | 34974a34d1858bad49163e61814f2f22c9304866b69549b9dde1f3108fa35301 |