Before you start
Learn what to expect from this tutorial and how to get the most out of it.
If you're in the business of developing a parser or compiler (considered by most a somewhat black art, indeed), there are several technical issues you must address. In recent times, ANother Tool for Language Recognition (ANTLR) has been gaining a lot of traction as the tool of choice for creating language parsers. This tutorial takes a close look at some of the typical issues you would encounter while creating a custom parser and shows how to solve those problems using ANTLR.
In this tutorial, you learn how to create custom language parsing with the help of ANTLR. In addition, you learn how to address common issues that arise with compiler and parser creation.
To fully appreciate this tutorial, you must have some familiarity with both language parsing and with ANTLR. All code in this tutorial has been tested with ANTLR version 2.7.2 and compiled with the GNU Compiler Collection (GCC) version 3.4.4.
To run the examples in this tutorial, you need the following elements: