Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Ruby target

Author

Kyle has built a new and complete Ruby target for 3.3.

Previous author: Martin Traverso (mtraverso [at] acm [dot] org)

Status

The Ruby code generation target functional as of v3.0b4. Lexer and Parser generation are supported so far. Tree Parsers are not yet supported, though.

TODO

  • Return parameters
  • Scopes
  • ASTs
  • Error recovery
  • Memoization
  • Tree grammars

Some automated tests have been ported from the Java code generation target test suite, but more tests are needed (at least one for each string template)

Sample grammar

...

Functional at ANTLR 3.3.

More info.

Sample grammar

Ruby target examples.