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


Latest version is 3.4
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

ANTLR makes building custom DSLs a breeze
Mukundan Agaram (Enterprise Architect at...
We used ANTLR to build and parse custom Domain Specific Business Rule Languages...

We all benefit from Antlr
Guido Leenders at Invantive
We have developed a software package that integrates with Microsoft Excel...

Great Tool
Maximus
Using this to parse a custom lightweight scripting language. It was quick...

so good but so hard
Wang Bin
I am a graduate from China and just learning your ANTLR. It's good but...

More...

Showcase
UDK/UnrealScript plugin for Eclipse
Ori Hanegby Wed Aug 17, 2011 08:28
UDK/UnrealScript support for eclipse. Adds support for code completion,...

Open Cloud Computing Interface
Andy Edmonds Tue Jun 21, 2011 08:49
The OCCI grammar supplies a lexer and parser that will validate any valid...

Zoneinfo TZ
Christopher Hunt Sun Apr 3, 2011 16:14
Zoneinfo TZ is a Java time zone library that parses zoneinfo files and...

More...

Looking for previous version ANTLR v2?

If you like ANTLR, check out the StringTemplate template engine for all your structured text generation needs.


Search


News
Check out Terence's blog...

File Sharing
Unification Algorithm in F#
Eric Taucher Fri Mar 16, 2012 10:43
Robinson Unification Algorithm in F# - Learning Version

Using antlr+stringtemplate to Generate Method Chaining, written in Chinese
YANG Guifu Mon Dec 5, 2011 08:13
It is a 6-days-blog attatched, which descibes step by step how to

Vim Stringtemplate Syntax
Kenney Westerhof Wed Sep 7, 2011 10:42
A VIM syntax file for StringTemplate files (.stg etc..)

Antlr D target
Márton Papp Wed Jul 20, 2011 12:42
A project for ANTLR D target at sourceforge.

More...
Documentation
Getting started with ANTLR v3

ANTLR Documentation

The Definitive ANTLR Reference (PDF available), Language Implementation Patterns (PDF available).

Using ANTLR target languages

Runtime API Doc

ANTLR FAQ

Browse source tree (github)

Programming language course lecture notes

ANTLR-centric language glossary

Grammars
First Order Logic Grammar
Stephan Opfer Fri May 4, 2012 11:32
A simple grammar for first order logic formulas.

PSharp - Portugol implementation
Ricardo Borges Wed May 2, 2012 21:04
Simplified scripting language using portuguese syntax for educational purposes....

C# 4.0 preprocessor, lexer, and parser
Christian Wulf Mon Apr 30, 2012 06:32
I developed a C# 4.0 lexer (incl. preprocessor) grammar and a C# 4.0 parser...

SPARQL Grammar 1.1
Juergen Pfundt, Michele Mostarda, Simone Tripodi Thu Jan 5, 2012 19:19
SPARQL (pronounced "sparkle") is the query language for the Semantic Web...

More...
Articles
Visual AST for ANTLR Generated Parser Output
Matthew YC So Tue Apr 24, 2012 08:56


Why program by hand in five days what you could spend five years of your life automating?
Terence Parr Thu Aug 4, 2011 11:52
Slides from keynote from Code Generation 2011 conference in Cambridge,...

Integrating ANTLR without learning Ant (in NetBeans)
Jeff Allen Sun May 22, 2011 07:09


Integrating ANTLR without learning Ant (in NetBeans)
Jeff Allen Sat May 21, 2011 07:05
This article shows you how to incorporate ANTLR within a NetBeans build,...

More...

Mailing list
Subject: connectivity to the server was down
Jim Idle Wed, 16 May 2012 10:12:45 +0800

Subject: Lexer error handling
Jim Idle Wed, 16 May 2012 10:09:21 +0800

Subject: [resend] antlr.org needs a facelift
Adam Retter Tue, 15 May 2012 21:10:14 +0100

Subject: [resend] antlr.org needs a facelift
Terence Parr Tue, 15 May 2012 11:08:32 -0700

More...