Sign inSign up

alvarofpp/antlr4

By alvarofpp

•Updated over 2 years ago

A docker image for ANTLR4.

Image
0

2.3K

alvarofpp/antlr4 repository overview

⁠Docker image for ANTLR4

Github

A docker image based in Alpine for ANTLR4⁠, inspired by the official image⁠.

docker pull alvarofpp/antlr4

⁠How to use

Generate files from your grammar:

docker run --rm -u $(id -u) -v $(pwd):/work alvarofpp/antlr4 antlr -Dlanguage=Java Expr.g4

Compile:

docker run --rm -u $(id -u) -v $(pwd):/work alvarofpp/antlr4 javac src/Expr*.java

View using the GUI:

docker run --rm -u $(id -u) -v $(pwd)/src:/work alvarofpp/antlr4 grun Expr prog -gui

Tag summary

Content type

Image

Digest

sha256:40d86408c…

Size

158.5 MB

Last updated

over 2 years ago

docker pull alvarofpp/antlr4