Skip to main content

ANTLeRinator

Project description

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

Requirements

  • Python ~= 2.7 or >= 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_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

Project details


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.1.post1.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file antlerinator-4.7.1.post1.tar.gz.

File metadata

  • Download URL: antlerinator-4.7.1.post1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.4.6

File hashes

Hashes for antlerinator-4.7.1.post1.tar.gz
Algorithm Hash digest
SHA256 57b470663b309f979b06a737e9e3616fa0fa36934a30e24356b880be68c893ec
MD5 87c70c5057f81d9bf82454ef922abdc5
BLAKE2b-256 cdc423aa0b5f74174e41cea76b222db6ca79a6146f4ebd543330f40ca7db31f0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page