Home | Download | ANTLRWorks | Wiki | About ANTLR | Feedback | Support | Bugs | v2


Latest version is 3.2
Download now! »

Download
Terence Parr What is ANTLR?
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. ANTLR provides excellent support for tree construction, tree walking, translation, error recovery, and error reporting. There are currently about 5,000 ANTLR source downloads a month.

ANTLR has a sophisticated grammar development environment called ANTLRWorks, written by Jean Bovet.

Terence Parr is the maniac behind ANTLR and has been working on language tools since 1989. He is a professor of computer science at the University of San Francisco.

More...

Testimonials

Kudos
Guido van Rossum
I'm actually really liking ANTLR! I have a pretty darn good velocity with...

Turning PHP into a functional PL
Jeffrey M. Barber
Antlr v3 is awesome. I used Antlr v2 for several projects, but my latest...

You Used Ruby to Write WHAT?!
Zed Shaw
"...using ANTLR, without much fuss I can prototype an entire new language...

Regarding The Definitive ANTLR Reference book
Gevik Babakhani
Before I got this book, I had to hack my way through various examples and...

More...

Showcase
Google App Engine (Python) uses ANTLR
submitted by Terence Parr Thu Jan 14, 2010 14:39
"In addition to the Python standard library, the App Engine APIs and tools,...

SyntaxEditor for WPF has ANTLR parser integration
Bill Henning Tue Oct 20, 2009 16:17
The next build of WPF Studio will contain a new assembly that makes it...

Yahoo! Query Language
Submitted by Terence Fri Aug 7, 2009 16:50
Yahoo! uses ANTLR for its query language. The Yahoo! Query Language is...

More...

Looking for previous version ANTLR v2?

If you like ANTLR, check out the StringTemplate template engine.


Search


News
News feed has moved to wiki.

   ANTLR news...

   Terence's blog...

New Language Implementation Patterns available in PDF and soon print form!
Learn to build configuration file readers, data readers, model-driven code generators, source-to-source translators, source analyzers, and interpreters. You don't need a background in computer science--ANTLR creator Terence Parr demystifies language implementation by breaking it down into the most common design patterns. Pattern by pattern, you'll learn the key skills you need to implement your own computer languages.

File Sharing
Unicode category lexer fragments for ANTLR3
Robert Baruch Thu Nov 12, 2009 16:09
This zip file contains Unicode_5.2.0_Lexer.g, a set of lexer fragments...

vim syntax highlighter for ANTLR v3
Davyd Madeley Fri Nov 21, 2008 10:43
I found an old vim syntax highlighter on antlr-interest, but it didn't...

Sun-tuned ANTLR v2
Sun Microsystems / NetBeans Tue Jun 3, 2008 14:32
Sun's NetBeans team has produced a version of ANTLR v2 that is very highly...

Yggdrasil 0.5b2 manual
Loring Craymer Thu Nov 29, 2007 13:31
Yggdrasil documentation

More...
Documentation
Getting started with ANTLR v3

ANTLR Documentation

The Definitive ANTLR Reference: Building domain-specific languages (PDF available).

Using ANTLR target languages

Runtime API Doc

source/changelogs at github

Source/version tree (Fisheye)

Continuous build system (Hudson)

ANTLR FAQ

Programming language course lecture notes

ANTLR-centric language glossary

Grammars
gfdfgfdf
Fri Mar 12, 2010 09:53


GQL Dynamic Parser (Google App Engine)
Vaclav Bartacek Wed Feb 17, 2010 07:27
Combined lexer+parser grammar for Java target. Allows to dynamically convert...

Fortran 2003
Craig Rasmussen Thu Feb 11, 2010 17:23
The Open Fortran Parser (OFP) project provides a Fortran 2003 compliant...

XPath 2.0
Paul Bober and Stephen Tu Mon Jan 25, 2010 14:54
An implementation of the XPath 2.0 grammar

More...
Articles
Learning ANTLR
Bill Bejeck Fri Mar 5, 2010 19:31
A tutorial on getting started with ANTLR. Covers the basics of writing...

ANTLR 3.x Video Tutorial
Scott Stanchfield Mon Dec 14, 2009 11:26
I've converted my ANTLR 2.x tutorial to ANTLR 3.x in the most lazy way...

Implementing parsers and state machines in Java
Terence Parr Fri Oct 2, 2009 15:39
Slides and video for my talk at 2009 JVM language summit. Topics: Generated...

Write Your Own Language With ANTLR 3 and the DLR
Dermot Hogan Tue Sep 2, 2008 10:47
Ever had trouble learning a computer language in the past? Well why not...

More...

Mailing list
Subject: Using the results
Nikolas Everett Tue, 16 Mar 2010 19:26:18 -0400

Subject: Import problems when splitting out tokens
Roger Lefebvre Tue, 16 Mar 2010 14:13:13 -0700 (PDT)

Subject: C example error: PolyDiff
Brian Catlin Tue, 16 Mar 2010 22:40:02 +0800

Subject: Best version to use with c++?
=?UTF-8?B?0JjQstCw0L3QvtCyINCc0LjRhdCw0LjQuw==?= Tue, 16 Mar 2010 17:22:42 +0300

More...