A Ruby-based parsing expression grammar (PEG) DSL for building parsers and interpreters.
Treetop is a Ruby library for creating parsers and interpreters using parsing expression grammars (PEGs). It allows developers to define language syntax in a `.treetop` grammar file, from which it generates a Ruby parser that produces abstract syntax trees. This approach solves the problem of building custom language processors by separating grammar definition from semantic implementation.
Ruby developers building custom domain-specific languages, interpreters, or tools that require parsing structured text formats.
Developers choose Treetop for its expressive PEG-based DSL, which supports recursive rules and lookahead—capabilities beyond regular expressions. Its tight integration with Ruby allows semantic logic to be implemented directly on syntax nodes, streamlining interpreter development.
A Ruby-based parsing DSL based on parsing expression grammars.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.