What Is ANTLR Parser Generator

Q

What is ANTLR Parser Generator?

✍: FYIcenter

A

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.

ANTLR takes as input a grammar that specifies a language and generates as output source code for a recognizer for that language. While version 3 supported generating code in the programming languages Ada95, ActionScript, C, C#, Java, JavaScript, Objective-C, Perl, Python, Ruby, and Standard ML, the current release at present only targets Java, C#, C++, JavaScript, Python2, Python3, Swift, and Go. A language is specified using a context-free grammar which is expressed using Extended Backus–Naur Form (EBNF).[citation needed]

The latest version of ANTLR is provided in 3 packages:

  • Complete ANTLR 4.10.1 Java binaries jar - Complete ANTLR 4.10.1 tool, Java runtime and ST 4.0.8, which lets you run the tool and the generated code.
  • ANTLR 4.10.1 distribution (zip) - Everything you need to build the tool and Java runtime from source.
  • ANTLR 4.10.1 Java runtime binaries jar - Only what's needed for building and executing parsers/lexers generated in Java.

ANTLR release history:

ANTLR   4.10.1   Apr 15, 2022
ANTLR   4.10     Apr 12, 2022
ANTLR   4.9.3    Nov 06, 2021
ANTLR   4.9.2    Mar 11, 2021
ANTLR   4.9.1    Jan 05, 2021
ANTLR   4.9      Nov 24, 2020
ANTLR   4.8      Jan 20, 2020
ANTLR   4.7.2    Dec 18, 2018
ANTLR   4.7.1    Dec 09, 2017
ANTLR   4.7      Mar 30, 2017

For more information on ANTLR, see ANTLR Website.

ANTLR Runtime Source Code

Download and Review ANTLR Parser Generator

Download and Review ANTLR Parser Generator

⇑⇑ FAQ for ANTLR Parser Generator

2018-10-20, 7259🔥, 0💬