# Installer antlr avec Homebrew, apt, dnf, MacPorts, Nix, zypper

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de antlr pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:antlr
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install antlr
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install antlr
```

  Preuve: MacPorts ports tree: lang/antlr/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install antlr
```

  Preuve: Debian stable package indexes: antlr from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install antlr-C++
```

  Preuve: Fedora Rawhide package metadata: antlr-C++ from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#antlr
```

  Preuve: nixpkgs package indexes: antlr from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- zypper (92%):

```sh
sudo zypper install antlr
```

  Preuve: openSUSE Tumbleweed package metadata: antlr from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Faits du paquet

- **Clé du paquet:** brew:antlr
- **Gestionnaire de paquets:** Homebrew
- **Page du gestionnaire de paquets:** <https://formulae.brew.sh/formula/antlr>
- **Version:** 4.13.2
- **Résumé source:** ANother Tool for Language Recognition
- **Page d'accueil:** <https://www.antlr.org/>
- **Dépôt:** <https://github.com/antlr/antlr4>
- **Docs amont:** <https://github.com/antlr/antlr4/blob/master/doc/index.md>
- **Licence:** BSD-3-Clause
- **Archive source:** <https://www.antlr.org/download/antlr-4.13.2-complete.jar>
- **Dernière mise à jour:** 2026-06-22T14:02:43-07:00
- **Généré:** 2026-07-08T18:08:21+00:00

## exécutables

- antlr (cli)
- grun (cli)
- antlr (alias)
- grun (alias)

## Dépendances

- openjdk

## Comportement d'installation

- hook post-installation: non défini
- Bouteille: disponible sur all

## Version et fraîcheur

- page générée: 2026-07-08
- version du gestionnaire: 4.13.2
- gestionnaire mis à jour: 2026-06-22
- données locales: OK
- dépôt amont: https://www.antlr.org/
- info: Release/tag comparison is only available for GitHub repositories.
## Historique du projet et usages

ANTLR, short for ANother Tool for Language Recognition, is a long-running parser-generator project led by Terence Parr. Its package-manager identity is the classic command-line compiler-tool shape: install a runtime/tool, write a grammar, generate parser code, and wire that generated code into a language, protocol, data-format, or DSL implementation.

### Historique du projet

The official site describes ANTLR as a parser generator for reading, processing, executing, or translating structured text or binary files, and notes that Parr has worked on language tools since 1989. ANTLR 4 is the modern generation of the project; its repository documentation says major version bumps happen when the tool is rewritten for a new generation, specifically citing the ANTLR 3 to ANTLR 4 move from LL(*) to ALL(*) parsing.

ANTLR 4 consolidated the tool and runtimes in one coordinated release line. The README explains that a release covers the tool plus all supported runtimes at the same version, because cross-target consistency is part of the project contract. That policy makes ANTLR feel unlike many single-language packages: a Homebrew user installing the CLI is also installing into a cross-language ecosystem.

### Historique d'adoption

ANTLR became important wherever teams needed maintainable parsers without hand-writing lexers and recursive-descent parsers. The official README says it is widely used to build languages, tools, and frameworks, and the docs point to grammars-v4 as a companion repository of reusable grammars.

The ANTLR 4 line broadened adoption by supporting multiple code-generation targets. The README currently lists C++, C#, Dart, Java, JavaScript, PHP, Python 3, Swift, TypeScript, and Go, with a dedicated Go runtime repository for Go module consumption while development still happens in the main repository.

### Modes d'utilisation

The package is used from the command line to turn a grammar into parser and lexer code, then optionally inspect parse trees during development. The official site's quick start shows installing the modern antlr4-tools wrapper, writing an Expr.g4 grammar, using antlr4-parse to visualize a parse tree, and running antlr4 to generate source files.

In package-manager culture, ANTLR sits with bison, yacc, ragel, tree-sitter, and compiler toolchains: it is not usually an end-user app, but it is a dependency that creates other code. That makes version pinning and generated-output reproducibility matter, especially because the README recommends regenerating parsers with each minor release.

### Pourquoi les passionnés de paquets s'y intéressent

ANTLR is a package nerd's parser-generator benchmark: old enough to have multiple major generations, portable enough to ship runtimes for many languages, and opinionated enough that its release policy is explicitly documented. The Homebrew formula name is the short historical name, while upstream's current docs distinguish the ANTLR 4 tool, runtimes, generated parsers, and related grammar collections.

It also illustrates why source packages and generated-code packages are different operational animals. Updating the CLI can imply regenerating checked-in parser code, updating runtime packages in several languages, and checking target-specific compatibility rather than treating the version as a simple semver patch.

### Chronologie

- 1989: Terence Parr is described by the official site as having worked on language tools since this year.
- 2012: ANTLR 4 documentation includes Pragmatic Bookshelf copyright and material from The Definitive ANTLR 4 Reference.
- 2023: ANTLR 4.13.1 release notes show continued maintenance across C#, Go, Java, JavaScript, and Swift targets.
- 2024: ANTLR 4.13.2 is published as a minor update release.

### Related projects

- grammars-v4 provides a large official collection of action-free grammars for use with ANTLR.
- antlr4-go is the dedicated Go runtime repository used for Go module imports while runtime development remains in antlr/antlr4.
- antlr4-tools is the official-site-recommended helper for installing Java and ANTLR and exposing antlr4 and antlr4-parse commands.

### Sources

- Official ANTLR homepage, README, docs index, and GitHub release feed.


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals

## Détails de la base source

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** antlr
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Autres enregistrements de gestionnaires de paquets

- Debian apt - antlr - 2.7.7+dfsg-14: normalized package name match | Debian stable package indexes: antlr from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | language tool for constructing recognizers, compilers etc | https://www.antlr2.org
- Debian apt - antlr-doc - 2.7.7+dfsg-14: normalized package name match | Debian stable package indexes: antlr-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | language tool for constructing recognizers, compilers etc | https://www.antlr2.org
- Debian apt - libantlr-dev - 2.7.7+dfsg-14: normalized package name match | Debian stable package indexes: libantlr-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | language tool for constructing recognizers, compilers etc | https://www.antlr2.org
- Debian apt - libantlr-java - 2.7.7+dfsg-14: normalized package name match | Debian stable package indexes: libantlr-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | language tool for constructing recognizers, compilers etc (java library) | https://www.antlr2.org
- Debian apt - python3-antlr - 2.7.7+dfsg-14: normalized package name match | Debian stable package indexes: python3-antlr from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | language tool for constructing recognizers, compilers etc - Python 3.x | https://www.antlr2.org
- Nix - antlr: normalized package name match | nixpkgs package indexes: antlr from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - antlr - 2.7.7+dfsg-13build1: normalized package name match | Ubuntu 24.04 LTS package indexes: antlr from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | language tool for constructing recognizers, compilers etc | https://www.antlr2.org
- Ubuntu apt - antlr-doc - 2.7.7+dfsg-13build1: normalized package name match | Ubuntu 24.04 LTS package indexes: antlr-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | language tool for constructing recognizers, compilers etc | https://www.antlr2.org
- Ubuntu apt - libantlr-dev - 2.7.7+dfsg-13build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libantlr-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | language tool for constructing recognizers, compilers etc | https://www.antlr2.org
- Ubuntu apt - libantlr-java - 2.7.7+dfsg-13build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libantlr-java from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | language tool for constructing recognizers, compilers etc (java library) | https://www.antlr2.org
- Ubuntu apt - python3-antlr - 2.7.7+dfsg-13build1: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-antlr from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | language tool for constructing recognizers, compilers etc - Python 3.x | https://www.antlr2.org
- dnf - antlr-C++ - 2.7.7-90.fc44: normalized package name match | Fedora Rawhide package metadata: antlr-C++ from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | C++ bindings for antlr2 generated parsers | http://www.antlr2.org/
- dnf - antlr-manual - 2.7.7-90.fc44: normalized package name match | Fedora Rawhide package metadata: antlr-manual from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Manual for antlr | http://www.antlr2.org/
- dnf - antlr-tool - 2.7.7-90.fc44: normalized package name match | Fedora Rawhide package metadata: antlr-tool from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | ANother Tool for Language Recognition | http://www.antlr2.org/
- zypper - antlr - 2.7.7-126.2: normalized package name match | openSUSE Tumbleweed package metadata: antlr from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Another Tool for Language Recognition | https://www.antlr.org/
- zypper - antlr-devel - 2.7.7-126.2: normalized package name match | openSUSE Tumbleweed package metadata: antlr-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | ANother Tool for Language Recognition (c++ runtime) | https://www.antlr.org/


## Liens liés

- [Terminal utility packages](https://www.automicvault.com/fr/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/fr/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/fr/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://www.automicvault.com/fr/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [openjdk](https://www.automicvault.com/fr/pkg/brew/openjdk/) - Runtime dependency declared by Homebrew.
- [bison](https://www.automicvault.com/fr/pkg/brew/bison/) - Shares av.db curated category or tags: cli, developer-tools, parser-generator, parser-generators.
- [goyacc](https://www.automicvault.com/fr/pkg/brew/goyacc/) - Shares av.db curated category or tags: cli, developer-tools, parser-generator, parser-generators.
- [lemon](https://www.automicvault.com/fr/pkg/brew/lemon/) - Shares av.db curated category or tags: cli, developer-tools, parser-generator, parser-generators.
- [packcc](https://www.automicvault.com/fr/pkg/brew/packcc/) - Shares av.db curated category or tags: cli, developer-tools, parser-generator, parser-generators.
- [javacc](https://www.automicvault.com/fr/pkg/brew/javacc/) - Shares av.db curated category or tags: cli, developer-tools, java, parser-generator.
- [amdatu-bootstrap](https://www.automicvault.com/fr/pkg/brew/amdatu-bootstrap/) - Shares av.db curated category or tags: cli, developer-tools, java.
- [ant](https://www.automicvault.com/fr/pkg/brew/ant/) - Shares av.db curated category or tags: cli, developer-tools, java.
- [apache-opennlp](https://www.automicvault.com/fr/pkg/brew/apache-opennlp/) - Shares av.db curated category or tags: cli, developer-tools, java.
- [kaitai-struct-compiler](https://www.automicvault.com/fr/pkg/brew/kaitai-struct-compiler/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, generator, openjdk.

## Combined YAML source

View the package source record on GitHub. [combined/antlr.yml](https://github.com/automic-vault/db/blob/main/combined/antlr.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
