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

« Previous Version 4 Next »

Getting started with ANTLR is pretty easy if you start playing around with some existing grammars and read some introductory material. As you progress, you will want to check out more advanced topics and play around by working with bigger grammars. Also please join us on the antlr-interest mailing list for active discussions on ANTLR and languages.

To get the most out of ANTLR, you should get The Definitive ANTLR Reference. It is required reading to become an advanced user. For example, Part III provides the only thorough explanation available anywhere of ANTLR's LL(star) parsing strategy.

  1. First you have to get the software: Download ANTLR v3 or get the ANTLRWorks grammar development environment, which includes ANTLR.
  1. Try a cut-and-paste example

That should give you a taste of how to run ANTLR on a simple grammar and some clue about how to build a recognizer and translator. From here, you should start with an existing grammar that is similar to your intended application and start modifying it. When you run into questions, first examine the output (and source of ANTLR if you want) to see if you can answer your own question. Then you should check the following:

  • No labels