Home

Awesome

Regen

Regen is an intuitive in-code templating engine based on a C#-Python like regen-lang created to replace T4 Templating.<br> 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.<br> 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<br>

Installation

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

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!

<p align="center"> <img align="center" src="resources/quickexample.gif" height=300 width=420 /> <img align="center" src="resources/quickexample-2.gif" height=300 width=420 /> </p>

Contributions

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

Expectations<br>

Powered by Regen

These libraries heavily rely on Regen to generate repetitive code: