Random people Random location Random misc

An Introduction to ANTLR: A parser toolkit for problems large and small

You've been there before, you can almost solve your current parsing problem with this horribly complicated regular expression, with look-aheads and look-behinds and nested groups..you know you should be using a real parser to solve the problem, but Yacc is too big a hammer to solve this problem. ANTLR is designed to be an easy to use parser generator, with a combined lexer and parser grammar, a natural, easy to follow, parsing algorithm and the ability to generate the parser in your favourite language.

If you're working in a dedicated field you've probably wanted to describe your problem in a Domain Specific Language, but have seen the task of describing and parsing your language as too difficult, ANTLR is designed to make this task easy.

This tutorial will guide you through creating parsers for small, simple problems right up to creating AST's to describe your Domain Specific Language. At each stage of the tutorial the actual generated code will be explored; the power of ANTLR comes from being able to follow the generated code.

Project: ANTLR 


Clinton Roy

Clinton is a software engineer with an interest in improving software quality through good design, testing, and automation. Clinton has had the pleasure of using open source tools throughout his entire career.

Clinton Roy

Clinton is a software engineer with an interest in improving software quality through good design, testing, and automation. Clinton has had the pleasure of using open source tools throughout his entire career.

© 2007 MEL8OURNE LCA2008 and Linux Australia | Linux is a registered trademark of Linus Torvalds | Site map | Valid XHTML 1.0

rja