Skip to content

Generating Code from Basic Lexer Parser Grammars

ohboyohboyohboy edited this page Sep 13, 2010 · 9 revisions

ANTLR already has pretty thorough documentation about its grammar syntax and code usage:

here

Thus, I am not going to try and explain ANTLR’s purpose or grammar syntax here. Instead, I am goign to try and focus on how to use the ruby antlr3 tools and runtime library to generate and use recognizers written in ruby.

First, install the ruby antlr3 target:

gem install antlr3
Clone this wiki locally