antlr/antlr4


ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.

http://antlr.org

License: Other

Language: Java

Keywords: antlr, antlr4, cpp, csharp, golang, grammar, java, javascript, language-recognition, parse, parser-generator, parsing, python, swift


ANTLR v4

Build Travis-CI Status Build AppVeyor  Status Java 7+ License

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.

Given day-job constraints, my time working on this project is limited so I'll have to focus first on fixing bugs rather than changing/improving the feature set. Likely I'll do it in bursts every few months. Please do not be offended if your bug or pull request does not yield a response! --parrt

Donate

Authors and major contributors

Useful information

You might also find the following pages useful, particularly if you want to mess around with the various target languages.

The Definitive ANTLR 4 Reference

Programmers run into parsing problems all the time. Whether it’s a data format like JSON, a network protocol like SMTP, a server configuration file for Apache, a PostScript/PDF file, or a simple spreadsheet macro language—ANTLR v4 and this book will demystify the process. ANTLR v4 has been rewritten from scratch to make it easier than ever to build parsers and the language applications built on top. This completely rewritten new edition of the bestselling Definitive ANTLR Reference shows you how to take advantage of these new features.

You can buy the book The Definitive ANTLR 4 Reference at amazon or an electronic version at the publisher's site.

You will find the Book source code useful.

Additional grammars

This repository is a collection of grammars without actions where the root directory name is the all-lowercase name of the language parsed by the grammar. For example, java, cpp, csharp, c, etc...

Project Statistics

Sourcerank 19
Repository Size 59.9 MB
Stars 6,684
Forks 1,703
Watchers 333
Open issues 507
Dependencies 17
Contributors 177
Tags 38
Created
Last updated
Last pushed

Top Contributors See all

Terence Parr Sam Harwell ericvergnaud Mike Lischke Peter Boyer Ewan Mellor Ivan Kochurkin Ben Hamilton (Ben Gertzfield) David Sisson Will Faught hanjoes jm-mikkelsen marcohu janyou Michael Peyton Jones Renáta Hodován Thomasb81 Johannes Kohnen Nicolas Croad Dong Xie

Packages Referencing this Repo

antlr4-builds
JavaScript runtime for ANTLR4
Latest release 4.7.0 - Published - 6.68K stars
Antlr.4.Runtime
The standard C# ANTLR 4 runtime from the ANTLR Organization
Latest release 4.6.0 - Published - 6.68K stars
antlr4
JavaScript runtime for ANTLR4
Latest release 4.7.2 - Updated - 6.68K stars
org.antlr:antlr4
The ANTLR 4 grammar compiler.
Latest release 4.7.1 - Updated - 6.68K stars
org.antlr:antlr4-runtime
The ANTLR 4 Runtime
Latest release 4.7.1 - Updated - 6.68K stars
org.antlr:antlr4-master
ANTLR 4 Master Build POM
Latest release 4.7.1 - Updated - 6.68K stars
org.antlr:antlr4-maven-plugin
Maven plugin for ANTLR 4 grammars
Latest release 4.7.1 - Updated - 6.68K stars
org.antlr:antlr4-annotations
A set of annotations used within the ANTLR 4 Runtime
Latest release 4.3 - Updated - 6.68K stars
com.tunnelvisionlabs:antlr4-runtime
The ANTLR 4 Runtime (Optimized)
Latest release 4.7.1 - Updated - 6.68K stars
github.com/antlr/antlr4/runtime/Go/antlr
ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, process...
Latest release 4.7.2 - Published - 6.68K stars
com.tunnelvisionlabs:antlr4-maven-plugin
Maven plugin for ANTLR 4 grammars
Latest release 4.7.3 - Updated - 6.68K stars
com.tunnelvisionlabs:antlr4
The ANTLR 4 grammar compiler.
Latest release 4.7.3 - Updated - 6.68K stars
antlr-builds
JavaScript runtime for ANTLR4, bundled version
Latest release 4.7.2 - Updated - 6.68K stars
org.antlr:antlr4-runtime-testsuite
A collection of tests for ANTLR 4 Runtime libraries.
Latest release 4.7.1 - Updated - 6.68K stars
Antlr4.Runtime.Standard
The .NET Core C# ANTLR 4 runtime from the ANTLR Organization
Latest release 4.7.2 - Updated - 6.68K stars
com.tunnelvisionlabs:antlr4-annotations
A set of annotations used within the ANTLR 4 Runtime
Latest release 4.7.3 - Updated - 6.68K stars
com.tunnelvisionlabs:antlr4-master
ANTLR 4 Master Build POM
Latest release 4.7.3 - Updated - 6.68K stars

Recent Tags See all

4.7.2 December 18, 2018
4.7.1 December 09, 2017
intellij-1.8.4-version April 06, 2017
4.7 March 30, 2017
4.6 December 15, 2016
4.6-rc1 December 14, 2016
antlr4-master-4.5.3 March 30, 2016
4.5.3 March 30, 2016
4.5.2 January 29, 2016
4.5.1-1 August 20, 2015
4.5.1 July 15, 2015
4.5-opt May 22, 2015
4.4.1-opt May 22, 2015
4.5.1-beta-1 May 19, 2015
4.5 January 23, 2015

Interesting Forks See all

DanMcLaughlin/antlr4
ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, process...
Java - BSD-3-Clause - Last pushed - 28 stars - 13 forks
pboyer/antlr4
ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, process...
Java - Other - Last pushed - 25 stars - 4 forks
parrt/antlr4
Java - BSD-3-Clause - Last pushed - 15 stars - 3 forks
sharwell/antlr4
Java - BSD-3-Clause - Last pushed - 12 stars - 8 forks
CuiChuping/antlr4
ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, process...
Java - Updated - 4 stars

Something wrong with this page? Make a suggestion

Last synced: 2019-03-12 22:11:01 UTC

Login to resync this repository