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
XPath 2.0
Paul Bober and Stephen Tu Mon Jan 25, 2010 14:54
An implementation of the XPath 2.0 grammar See: http://www.w3.org/TR/xpath20/...

C# 4.0 for Antlr v3
Andrew Bradnan Mon Nov 23, 2009 14:52
ANTLR 3 grammar for CSharp 4.0 with preprocessor.

Python 3 grammar for C target
Ales Teska Fri Oct 9, 2009 14:52
ANTLR grammar with supporting C code and test/demo application. The only...

XQGrammar - 1.1.0
Nikolay Ognyanov Sat Aug 8, 2009 16:08
ANTLR 3 grammar for XQuery with Update, Scripting and Full Text.

More...
Articles
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...

ANTLR 3.0
Mark Volkmann Mon Jun 2, 2008 12:18
A large article talking about how to use ANTLR 3.0.

More...

Mailing list
Subject: Using $ as delimiter in StringTemplate from
andre rutti Tue, 9 Feb 2010 04:37:25 +0100

Subject: Creating AST with third party grammar
John B. Brodie Mon, 08 Feb 2010 18:42:23 -0500

Subject: Creating AST with third party grammar
tahiti Mon, 8 Feb 2010 14:58:49 -0800 (PST)

Subject: Using $ as delimiter in StringTemplate from
Terence Parr Mon, 8 Feb 2010 13:46:07 -0800

More...