ANTLR 3 Wiki Home

Welcome

Welcome to the ANTLR Project wiki.

This ANTLR 3 wiki complements and supports the ANTLR 3 website. Inside the wiki you will find documentation, tutorials and a FAQ.

We hope that you find what you need to learn more about ANTLR 3 on this wiki. If this is not the case, you may register and help (please read our entire welcome message first).

To get started with ANTLR, jump to FAQ - Getting Started. If you run into trouble, ANTLR has a mailing list full of helpful ANTLR fans.

Recently Updated
by Tony Gray (02 Jul)
Re: Antlr 3 CSharp Target (ANTLR 3)
by tlochner (29 Jun)
How to selectively use whitespace in Antlr3? (ANTLR 3)
by Vitaly Shelest (22 Jun)
Integration with Development Environments (ANTLR 3)
by Shaoting Cai (19 Jun)
gSync - Grammar Diff and Merge Tool (ANTLR 3)
by Shaoting Cai (19 Jun)
ANTLR Conference 2009 (ANTLR 3)
by Shaoting Cai (19 Jun)
File gsync.jar (ANTLR 3)
by Shaoting Cai (19 Jun)
File gsync-jar.tar.gz (ANTLR 3)
by Shaoting Cai (19 Jun)
File diff-main.png (ANTLR 3)
by Shaoting Cai (19 Jun)
File merge-main.png (ANTLR 3)
by Shaoting Cai (19 Jun)
File diff-wizard.png (ANTLR 3)
by Diego P. Dobniewski (19 Jun)
Re: How do I make ANTLRWorks and Visual Studio work... (ANTLR 3)
by Tony Gray (17 Jun)
Re: How do I make ANTLRWorks and Visual Studio work... (ANTLR 3)
Re: Simple tree-based interpeter (ANTLR 3)
by Terence Parr (08 Jun)
File 016.JPG (ANTLR 3)
by Terence Parr (08 Jun)
File 015.JPG (ANTLR 3)


Last changed Jun 03, 2009 11:28 by Terence Parr

Grab the new Language Design Patterns book now! 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, …

Read more…

Posted at Jun 03, 2009 by Terence Parr | 0 comments
Last changed Mar 19, 2009 14:46 by Terence Parr
Posted at Mar 19, 2009 by Terence Parr | 0 comments
Last changed Mar 05, 2009 11:37 by Terence Parr

Howdy, we're doing an ANTLR Conference 2009, hosted by Univ. of San Francisco right after JavaOne 2009.  June 6, 7.

Posted at Mar 05, 2009 by Terence Parr | 0 comments
Last changed Feb 21, 2009 16:05 by Terence Parr

Get latest ANTLR release while it's hot.

Posted at Feb 21, 2009 by Terence Parr | 0 comments
Last changed Jan 08, 2009 12:44 by Terence Parr

I'm working away on the new book. Chock full of useful patterns. (sorry for all the buzzwords in the title/subtitle). We might do a PDF beta in a few months.

Posted at Jan 08, 2009 by Terence Parr | 0 comments
Last changed Nov 30, 2008 12:57 by Terence Parr

So, let's do some rewriting using the pattern matching filter=true mode. Again, the VecMath.g parser will build trees but we'll avoid building an entire tree grammar. We'll focus on some patterns we want to rewrite.

Here's the grammar to build trees. …

Read more…

Posted at Nov 30, 2008 by Terence Parr | 0 comments
Last changed Nov 30, 2008 11:00 by Terence Parr

Can't resist showing off new filter mode for tree grammars (this is working in my dev branch). Imagine I built some trees with Cymbal.g and want to define symbols and push/pop scopes. Previously you had to give full tree grammar even though we'd only have actions in a few spots and don't care about structure (we trust tree builder). By doing tree pattern matching, we get to focus only on those subtrees we care about. …

Read more…

Posted at Nov 29, 2008 by Terence Parr | 0 comments
Last changed Nov 22, 2008 15:23 by Terence Parr
Unknown macro: {down, up}
, apply=
Unknown macro: {once,repeat}
Posted at Nov 22, 2008 by Terence Parr | 0 comments
Last changed Jan 20, 2009 14:47 by Terence Parr

Thanks to the extraordinary efforts of Jim Idle, we now have ANTLR fully integrated/build with maven. Maven provides an auto-syncing repository so that new release are available within 4 hours of release and makes it easy for people other than me to build ANTLR. If you install the Maven plugin into your IDE (Netbeans/IDEA/Eclipse) then you will find that you can open the directory that contains the ANTLR source code (look for the pom. …

Read more…

Posted at Nov 20, 2008 by Terence Parr | 0 comments
Last changed Oct 23, 2008 15:08 by Terence Parr

Filter mode for Lexers

So, filter mode for Lexers is incredibly useful. For example, I use it for my wiki to HTML translation. you just specify some rules in the lexer with filter=true and it tries all of the rules against the input stream. Precedence is given to rules specified first. In other words, the lexer tries to match the first rule against the current input location. If it fails, it moves to the next rule in tries it. It tries rules until it finds one that matches or it fails. …

Read more…

Posted at Oct 23, 2008 by Terence Parr | 1 comment

It's 1.2 with latest ANTLR 3.1.1 Download.

Posted at Oct 01, 2008 by Terence Parr | 0 comments

Get it while it's hot! http://www.antlr.org/download.html

Posted at Aug 12, 2008 by Terence Parr | 0 comments

Get it at http://www.antlr.org/download.html. Shooting for a much quicker b3 then full 3.1 (early August?). Release notes.

Posted at Jul 17, 2008 by Terence Parr | 0 comments
Last changed Jul 17, 2008 11:19 by Terence Parr

JDK javac compiler ANTLR grammar. The OpenJDK community has announced the approval of a new project, Compiler Grammar. The Compiler Grammar project's goal is "to develop an experimental version of the javac compiler based upon a grammar written in ANTLR."

Posted at Jul 17, 2008 by Terence Parr | 0 comments

Wiki Contents

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.