Automic VaultAutomic Vault

brew

使用 Homebrew, apt, dnf, MacPorts, Nix, zypper 安装 antlr

查看 antlr 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install antlr

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install antlr

MacPorts ports tree · lang/antlr/Portfile · 来源: api.github.com

Linux

Debian apt已验证 · 92%
sudo apt install antlr

Debian stable package indexes · antlr · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install antlr-C++

Fedora Rawhide package metadata · antlr-C++ · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#antlr

nixpkgs package indexes · antlr · 来源: raw.githubusercontent.com

openSUSE zypper已验证 · 92%
sudo zypper install antlr

openSUSE Tumbleweed package metadata · antlr · 来源: download.opensuse.org

概览

软件包摘要

ANother Tool for Language Recognition

命令和别名

  • antlr
  • grun

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

为什么软件包爱好者会关心

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.

时间线

  • 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.

来源

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

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
antlrcli全局可执行文件
gruncli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-08
管理器版本4.13.2
管理器更新时间2026-06-22
本地数据OK
上游not checked
检测到的最新版本未检测到

https://www.antlr.org/

安装元数据

软件包元数据

软件包键brew:antlr
版本4.13.2
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/antlr
主页https://www.antlr.org/
仓库https://github.com/antlr/antlr4
上游文档https://github.com/antlr/antlr4/blob/master/doc/index.md
许可证BSD-3-Clause
源码归档https://www.antlr.org/download/antlr-4.13.2-complete.jar
最后更新2026-06-22T14:02:43-07:00
Pulseupdated
依赖openjdk
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameantlr
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

antlr 2.7.7+dfsg-14

language tool for constructing recognizers, compilers etc

https://www.antlr2.org

sudo apt install antlr
  • Section: devel
  • Architecture: all
  • 4 依赖
  • normalized package name match
  • 匹配方式:Antlr
Debian stable package indexes · deb.debian.org · Debian stable package indexes: antlr from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

antlr-doc 2.7.7+dfsg-14

language tool for constructing recognizers, compilers etc

https://www.antlr2.org

sudo apt install antlr-doc
  • Section: doc
  • Architecture: all
  • Source Package: antlr
  • normalized package name match
  • 匹配方式:Antlr
Debian stable package indexes · deb.debian.org · Debian stable package indexes: antlr-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libantlr-dev 2.7.7+dfsg-14

language tool for constructing recognizers, compilers etc

https://www.antlr2.org

sudo apt install libantlr-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: antlr
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Antlr
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libantlr-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libantlr-java 2.7.7+dfsg-14

language tool for constructing recognizers, compilers etc (java library)

https://www.antlr2.org

sudo apt install libantlr-java
  • Section: java
  • Architecture: all
  • Source Package: antlr
  • normalized package name match
  • 匹配方式:Antlr
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libantlr-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

python3-antlr 2.7.7+dfsg-14

language tool for constructing recognizers, compilers etc - Python 3.x

https://www.antlr2.org

sudo apt install python3-antlr
  • Section: python
  • Architecture: all
  • Source Package: antlr
  • 1 依赖
  • normalized package name match
  • 匹配方式:Antlr
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python3-antlr from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

antlr

nix profile install nixpkgs#antlr
  • normalized package name match
  • 匹配方式:Antlr
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: antlr from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

antlr 2.7.7+dfsg-13build1

language tool for constructing recognizers, compilers etc

https://www.antlr2.org

sudo apt install antlr
  • Section: universe/devel
  • Architecture: all
  • 4 依赖
  • normalized package name match
  • 匹配方式:Antlr
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: antlr from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

antlr-doc 2.7.7+dfsg-13build1

language tool for constructing recognizers, compilers etc

https://www.antlr2.org

sudo apt install antlr-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: antlr
  • normalized package name match
  • 匹配方式:Antlr
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: antlr-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libantlr-dev 2.7.7+dfsg-13build1

language tool for constructing recognizers, compilers etc

https://www.antlr2.org

sudo apt install libantlr-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: antlr
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Antlr
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libantlr-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libantlr-java 2.7.7+dfsg-13build1

language tool for constructing recognizers, compilers etc (java library)

https://www.antlr2.org

sudo apt install libantlr-java
  • Section: universe/devel
  • Architecture: all
  • Source Package: antlr
  • normalized package name match
  • 匹配方式:Antlr
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libantlr-java from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

python3-antlr 2.7.7+dfsg-13build1

language tool for constructing recognizers, compilers etc - Python 3.x

https://www.antlr2.org

sudo apt install python3-antlr
  • Section: universe/python
  • Architecture: all
  • Source Package: antlr
  • 2 依赖
  • normalized package name match
  • 匹配方式:Antlr
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: python3-antlr from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
dnf95%

antlr-C++ 2.7.7-90.fc44

C++ bindings for antlr2 generated parsers

http://www.antlr2.org/

sudo dnf install antlr-C++
  • License: ANTLR-PD
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: antlr
  • 1 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Antlr
Fedora Rawhide package metadata · dl.fedoraproject.org · 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
dnf95%

antlr-manual 2.7.7-90.fc44

Manual for antlr

http://www.antlr2.org/

sudo dnf install antlr-manual
  • License: ANTLR-PD
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: antlr
  • 1 提供
  • normalized package name match
  • 匹配方式:Antlr
Fedora Rawhide package metadata · dl.fedoraproject.org · 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
dnf95%

antlr-tool 2.7.7-90.fc44

ANother Tool for Language Recognition

http://www.antlr2.org/

sudo dnf install antlr-tool
  • License: ANTLR-PD
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: antlr
  • 4 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Antlr
Fedora Rawhide package metadata · dl.fedoraproject.org · 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
zypper95%

antlr 2.7.7-126.2

Another Tool for Language Recognition

https://www.antlr.org/

sudo zypper install antlr
  • License: GPL-2.0-or-later AND LicenseRef-SUSE-Public-Domain AND MIT
  • Category: Development/Tools/Other
  • Architecture: x86_64
  • Source Package: antlr
  • 2 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Antlr
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: antlr from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

antlr-devel 2.7.7-126.2

ANother Tool for Language Recognition (c++ runtime)

https://www.antlr.org/

sudo zypper install antlr-devel
  • License: GPL-2.0-or-later AND LicenseRef-SUSE-Public-Domain AND MIT
  • Category: Development/Tools/Other
  • Architecture: x86_64
  • Source Package: antlr
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Antlr
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: antlr-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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