Tools to generate constants and enums in multiple languages

4 points by tossaway9000 ↗ HN
I would like to generate constants (and ideally enums) from a single source into multiple languages so that I don't need to maintain multiple definitions.

I'd like to support at least: C, C++, C#, Rust, Javascript

So far the closest thing I've found is reconstant[0], which looks simple enough to add C# to but curious what other options are available.

3 comments

[ 2.7 ms ] story [ 16.2 ms ] thread