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
smali
JesusFreke Sat Apr 24, 2010 16:16
An assembler for Android's dex bytecode/format, written with ANTLR v3....

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

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
ANTLR v3 task for Ant
Juergen Pfundt Mon Jul 5, 2010 11:37
[updated] A task for Ant that knows about building ANTLR v3 grammars.

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

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
PL/SQL
Patrick Higgins Fri Jul 16, 2010 15:20
Parser for Oracle PL/SQL. Works with 11g. More details can be found in...

XPath 1.0 grammar
Jan-Willem van den Broek Thu Jul 15, 2010 17:09
XPath 1.0 grammar. Should conform to the official spec at http://www.w...

Pascal grammar in ANTLR 3
Marton Papp Thu Jul 15, 2010 11:04
It contains a Pascal grammar file in ANTLR 3 format. It was made by exising...

Extended GQL Parser (Google App Engine - Java)
Vaclav Bartacek Thu Jun 10, 2010 08:37
Lexer+Parser and TreeParser grammars allow to evaluate SELECT, INSERT,...

More...
Articles
ANTLR via Clojure
Brian Carper (Submitted by TJP) Sun Jul 18, 2010 07:34
Can you use ANTLR from Clojure? Sure. Would you want to? Maybe. Here's...

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

More...

Mailing list
Subject: Recovering line number in Python-Antlr AST
ZelluX Sat, 31 Jul 2010 20:01:26 +0800

Subject: performance improvement in v3.2?
Chu Rui Sat, 31 Jul 2010 17:02:11 +0800

Subject: Fixed field
William Clodius Fri, 30 Jul 2010 20:39:40 -0600

Subject: Fixed field
Brian Lavender Fri, 30 Jul 2010 19:07:12 -0700

More...