Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

Ruby target

Author

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

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

Status

As of Functional at ANTLR v3.0ea7, simple parsers can be built. I'm now working to catch up to ANTLR v3.0b3.

Once basic parser generation is working again, the plan is to add the following features:

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

Some automated tests have been ported from the Java code generation target test suite3.3. Handles:

  • AST construction
  • Built-in automatic test scripts to quickly try out your recognizer
  • AST parser generation
  • Debug mode features
  • Grammar profiling features
  • Template output mode (using a variation of ERB instead of StringTemplate)
  • Lexer filter mode

More info.

Sample grammar

Ruby target examples.