/Regen

Regen is an intuitive in-code templating engine based on a regen-lang created to replace T4 Templating.

Primary LanguageC#MIT LicenseMIT

Regen

Regen is an intuitive in-code templating engine based on a C#-Python like regen-lang created to replace T4 Templating.
Regen as a template compiler/engine allows to expand in-line templates to be compiled into C# code and inserted into the same source file.
It is mainly used to generate repetitive code - for instance the efficient handling of primitive types without boxing requires a branch for every type that executes the same operation.

Current version: 0.27a-2

Installation

Regen is shipped as a visual studio extension (VSIX) and currently supports vs2017 and vs2019.
Official releases can be downloaded here or in the releases page.

Getting Started

Regen provides a handy Visual Studio plugin which compiles embedded regen-lang templates in your C# source files. For an in-depth language introduction, make sure to read our getting started page!

Contributions

Contributions are welcome, if you would like to help: check out our TODO page.
Thought about a new feature that might come handy? Create an issue about it and get started!

Expectations

  • Any new feature is expected to be fully tested.
  • Any new code is expected to be formatted according to the file it is in or exactly like the neighbor files.

Powered by Regen

These libraries heavily rely on Regen to generate repetitive code: