antlr
« Back to VersTracker
Description:
ANother Tool for Language Recognition
Type: Formula  |  Latest Version: 4.13.2@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  @antlr  |  formulae.brew.sh
Category: Developer tools
Tags: parser compiler language-design dsl development tool
Install: brew install antlr
About:
ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files. It is widely used to build languages, tools, and frameworks. The tool automatically generates a parser that can build and traverse parse trees, simplifying complex language processing tasks.
Key Features:
  • Generates parsers and lexers in multiple target languages including Java, C#, Python, and Go
  • Automatic parse tree construction and visitor/listener patterns for easy tree traversal
  • LL(*) grammar analysis for powerful and flexible language parsing
  • Excellent error reporting and recovery mechanisms
Use Cases:
  • Creating custom domain-specific languages (DSLs)
  • Building code analysis and static analysis tools
  • Implementing data format parsers (JSON, XML, custom protocols)
  • Source code transformation and transpilation
Alternatives:
  • Bison/Flex – Traditional GNU tools using LALR(1) parsing, generally more complex to set up than ANTLR
  • PEG parsers – Parsing Expression Grammars offer different trade-offs, often simpler but less powerful for certain language constructs
License: BSD-3-Clause
Dependencies: openjdk
Bottles available for: all
Version History
Detected Version Rev Change Commit