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. You should also consider reading the following books:

       

 
Recently Updated
by Edgar Espina (23 Feb)
Integration with Development Environments
by Terence Parr (22 Feb)
Composite Grammars
by Terence Parr (11 Feb)
How do I get case insensitivity?
by Terence Parr (09 Feb)
Re: Attribute and Dynamic Scopes
by John Pool (09 Feb)
Re: Attribute and Dynamic Scopes
by George Shannon (02 Feb)
Re: Code Generation Targets
by Terence Parr (01 Feb)
Re: Random phrase generation using an ANTLR grammar
by Oliver Zeigermann (30 Jan)
How do I get detailed tree parser error messages?
by Terence Parr (26 Jan)
Why do I get a ClassCastException when parsing a tree?
by Terence Parr (25 Jan)
Tree construction


Last changed Feb 20, 2010 11:30 by Terence Parr

I've moved this content to the v4 ANTLR pages.

Posted at Jan 19, 2010 by Terence Parr | 0 comments
Last changed Oct 21, 2009 15:21 by Terence Parr

I've done a lot of thinking about this and I believe I made a mistake in the final ST 3.2.1 version before my current rebuild (v4). It's too confusing, and makes the code too complex, to distinguish between missing and present but null. There is huge history with ST too suggests that it seems to work okay treating a missing attribute and a null attribute as the same thing (i.e., not there). We have the null option that lets us say what to replace null with. …

Read more…

Posted at Oct 20, 2009 by Terence Parr | 0 comments
Last changed Oct 15, 2009 12:22 by Terence Parr

Part 1: Null-valued attributes

Let's consider values inside arrays. If names={"Tom", null, null, "Ter"}, what should we get here:

<names>

or here

<names; separator=", ">

My preference would be: TomTer and Tom, Ter. That is what v3 does now. We recently introduced the null option so we can say:

<names; null="foo">

to get "foo" instead of an missing element when names[i] is null.

HOWEVER, you cannot set an attribute to null. So, if instead of passing the list,</names></names;></names;> …

Read more…

Posted at Oct 15, 2009 by Terence Parr | 0 comments

Wiki Contents

ANTLR Conference 2009
ANTLR v3 documentation
ANTLR v3 FAQ
ANTLR v3 To Do List
Articles
Examples
Grammar Design Patterns
Presentations
Terence Notes
Tools
Tutorials
Using ANTLR
Using ANTLR with XML
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.