Contents

Rattler

Parsing for Ruby that's so easy it feels like cheating.

Rattler is a parser generator for Ruby based on parsing expression grammars. Rattler's purpose is to make language design and recognition as simple and fun as possible. To that end, the normal parsing expression grammar syntax is extended with simple features to overcome many of the limitations of pure PEG grammars.

A language syntax is specified in a grammar using the Rattler syntax. Parser classes and modules can be generated statically using the "rtlr" command or dynamically from strings.

Features

Source

API Docs

In this section

Source: features/README.md at commit 8b4efde2, Rattler (MIT license).