antlr/antlr4

GitHub: antlr/antlr4

Stars: 18899 | Forks: 3448

# ANTLR v4 [![Java 11+](https://img.shields.io/badge/java-11+-4c7e9f.svg)](http://java.oracle.com) [![License](https://img.shields.io/badge/license-BSD-blue.svg)](https://raw.githubusercontent.com/antlr/antlr4/master/LICENSE.txt) **ANTLR** (ANother Tool for Language Recognition) 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 parse trees and also generates a listener interface (or visitor) that makes it easy to respond to the recognition of phrases of interest. **Dev branch build status** [![MacOSX, Windows, Linux](https://static.pigsec.cn/wp-content/uploads/repos/2026/06/eb7043af5f091559.svg)](https://github.com/antlr/antlr4/actions/workflows/hosted.yml) (github actions)