ANTLR v4
ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files. observed · 2026-08-28
Health v2 · maintenance only
53/100
- Activity 67
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 6055
- days_rel: n/a
- days_push: 198
- n_releases_24m: 0
Adoption not part of the score
18986 stars · 3462 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
ANTLR v4 is a parser generator that reads grammar files and produces parsers, lexers, and parse-tree walkers in ten target languages including Java, Python, C++, and Go. It is widely used to build languages, interpreters, translators, and tools that process structured text or binary formats.
Use cases
- build a programming language or DSL
- parse structured text files with a custom grammar
- generate a parser in multiple languages from one grammar
- write a SQL or config file parser
- translate or transpile source code
- build an interpreter for a scripting language
When to choose
- you need a battle-tested parser generator with grammars for many real-world languages
- you want generated parsers in several target languages from a single grammar
- you need parse trees with listener/visitor APIs for semantic actions
When to avoid
- you only need simple regex-based text matching
- you want a hand-written recursive descent parser with full control
- your project requires strict semver dependency guarantees
Facets
library · maturity stable
parser compiler interpreter developer-tools parsers programming-languages compilers developer-tools jvm python cpp dotnet go cross-platform php parser-generator grammar antlr4 parse-trees ll-parsing code-generation dsl javascript swift
2 sources
- readme: https://github.com/antlr/antlr4 · fetched 2026-08-28 · ff2e3bbfc226
- homepage: http://antlr.org · fetched 2026-08-29 · 979d95576f4b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| antlr/antlr4 | main | 53 |
| antlr/grammars-v4 | examples | 76 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem