Skip to main content

ANTLeRinator

Project description

https://img.shields.io/pypi/v/antlerinator?logo=python&logoColor=white https://img.shields.io/pypi/l/antlerinator?logo=open-source-initiative&logoColor=white https://img.shields.io/github/workflow/status/renatahodovan/antlerinator/main/master?logo=github&logoColor=white

ANTLeRinator is a Python utility package to help keeping components of ANTLR v4 in sync.

Requirements

  • Python ~= 2.7 or >= 3.5
  • pip and setuptools Python packages (the latter is automatically installed by pip)
  • Java SE >= 7 JRE or JDK (the latter is optional)

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for antlerinator, version 4.9.2
Filename, size File type Python version Upload date Hashes
Filename, size antlerinator-4.9.2.tar.gz (4.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page