Sign inSign up

leodido/antlr

By leodido

Updated over 8 years ago

A powerful parser generator for reading, processing, executing, or translating structured text.

Image
1

614

leodido/antlr repository overview

This repository contains the docker image providing a ready to use ANTLR.

What it is

A powerful parser generator for reading, processing, executing, or translating structured text or binary files. It's widely used to build languages, tools, and frameworks. From a grammar, ANTLR generates a parser that can build and walk parse trees.

antlr.org

Give it a grammar, get a parser.

Installation

Directly pull this image from the docker index.

docker pull leodido/antlr

Usage

The entrypoint of this container is the antlr executable.

You have to instantiate a container from this image bind-mounting volumes (for input and output files) and the passing the typical command line options as well as if you are calling antlr directly.

Something like the following line.

docker run --rm -v ... --user $(id -u):$(id -g) leodido/antlr <antlr_command_line_args>

I suggest to create an alias to this invocation.

Or you can use the wrapper script antlr.

It accepts the same options as antlr itself.

It bind-mounts all the necessary directories and calls the antlr executable within the container.

docker create --name antlr leodido/antlr
sudo docker cp antlr:antlr .
docker rm antlr

Tag summary

Content type

Image

Digest

Size

49.4 MB

Last updated

over 8 years ago

docker pull leodido/antlr