Skip to main content

ANTLeRinator

Project description

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

Requirements

  • Python >= 3.4
  • 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_default_path)
args = parser.parse_args()

if (args.antlr == antlerinator.antlr_default_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

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
antlerinator-4.7.1.tar.gz (3.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page