Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Five minute introduction to ANTLR 3

This is the home page for the ANTLR 3 space.

What is ANTLR 3?


To be written. Volunteers?

ANTLR v3 is the latest evolution of the PCCTS and ANTLR toolkits used for developing language processing tools. ANTLR (ANother Tool for Language Recognition) provides a framework for the generation of recognizers, compilers, and translators from grammatical descriptions. The generated code can be Java, C#, Objective-C or C. The grammatical descriptions can optionally include action code written in the target language (i.e. Java, C#, Objective-C, C etc). In the future, support for additional languages such as C++, Ruby and Perl6 is expected.

What does ANTLR 3 do?


To be written. Volunteers?

Given grammatical descriptions of a langauge, ANTLR v3 can be used to generate source code for various tools for processing input in that language.

Why should I use ANTLR 3?


To be written. Volunteers?

ANTLR v3's improved analysis engine, it's significantly enhanced parsing strength via LL(*) parsing with arbitrary lookahead and it's vastly improved tree construction rewrite rules would save you time and money if you need to construct language processing tools.

How do I use ANTLR 3?

1. Get ANTLR V3 and the wonderful AntlrWorks IDE

Download and install ANTLR 3 from the V3 page of the ANTLR website

Download and AntlrWorks from the AntlrWorks page of the ANTLR website

2. Learn basic ANTLR 3 syntax


To be written. Volunteers?

3. Build and use a basic ANTLR 3 grammar


To be written. Volunteers?

Java

grammar Simple;

C#

grammar Simple;

options
{
   language=CSharp;
}

Objective-C

grammar Simple;

options
{
   language=ObjC;
}

4. Build and use a more complex ANTLR 3 grammar from the examples-v3 distribution


To be written. Volunteers?

What next?

Read the Antlr 3 Documentation

Browse the list of questions frequently asked about ANTLR 3

Your five minutes are up!

  • No labels