ANTLR, ANother Tool for Language Recognition, is a language tool that provides a framework for constructing recognizers, interpreters, compilers, and translators from grammatical descriptions containing actions in a variety of target languages.
What is ANTLR?
"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 and walk parse trees. From https://www.antlr.org/
Previous versions
Since ANTLR is not commercial software, it is not required and does not maintain backward compatibility with previous major versions and even between some minor versions.
Updated links
On January 24th 2013, the www.antlr.org address was changed from pointing at site for ANTLR version 3 (www.antlr3.org) to ANTLR version 4 (www.antlr4.org). So questions and answers that used www.antlr.org were correct for ANTLR 3.x before this date. The links should be updated to www.antlr3.org for ANTLR 3.x or www.antlr4.org for ATNLR 4.x.
ANTLR IDE
The current release version is AntlrWorks 2.0 which works with ANTLR 4.x
Previous versions
- AntlrWorks 1.0 which works with ANTLR 3.x
Useful ANTLR links
- ANTLR Homepage
- ANTLRWorks: The ANTLR GUI Development Environment
- Scott Stanchfield's video tutorials
- Search legacy ANTLR forum
- ANTLR Google Groups - For in-depth discussions.
Examples and/or useful posts on SO
- Advantages of Antlr (versus say, lex/yacc/bison)
- Simple expression parser - version 3.x
- The previous expression parser with variable declaration - version 3.x
- A guide to ANTLR's semantic predicates, with examples - version 3.x
Related links
Code at Git
Related tags
Related projects
Installation
Antlr can most easily be installed through its NuGet package.
Install-Package Antlr