regen-lang

Regen is a language that defines languages. The regen compiler generates a parser for the language defined with the Regen language in supported general-purpose programming languages: - Rust - TypeScript (TODO) - Python (maybe) - C++ (maybe)

Regen is suitable for small application-specific grammars. It is meant to replace parse(cmd.split(" ")) with a more robust and easy-to-use parser. It is not meant to replace full-fledged parsers for existing programming languages, as those are more optimized and have more features like error recovery and better error messages.

Features

Syntax

Here is the grammar of Regen, defined in Regen, and highlighted with the generated parser with a Prism.js theme.

Documentation

TODO...