datatype99

Define algebraic data types and pattern matching in C99 code

brewmacoslinux
Try with needOr install directly
Source

About

Algebraic data types for C99

Examples

generate C code for custom data types from definitions$ datatype99 --help
create sum types and product types for C programs$ cat mytype.h | cpp | datatype99
enable pattern matching on enum-like data structures$ datatype99 < input.h > output.h
reduce boilerplate code for C data structure definitions$ datatype99 --version