genco icon indicating copy to clipboard operation
genco copied to clipboard

Support C

Open isaiahpettingill opened this issue 3 years ago • 1 comments

It would be awesome to add support for the c programming language. That way c could be used as a compile target for other languages or just for code generation. ANSI C99 support would be great.

You could use #includes for imports.

isaiahpettingill avatar Mar 21 '22 18:03 isaiahpettingill

Adding support for another language flavor is pretty straight forward.

If anyone wants to take a stab at it, see for example Go: https://github.com/udoprog/genco/blob/main/src/lang/go.rs

udoprog avatar Mar 22 '22 05:03 udoprog

Now that this is merged, any interest in cutting a release and closing this issue?

ajwerner avatar Sep 18 '23 14:09 ajwerner

I am waiting for a resolution to #39. Once that is in place I'll definitely want to make a release.

udoprog avatar Sep 21 '23 06:09 udoprog

Released now in 0.17.6.

udoprog avatar Sep 25 '23 17:09 udoprog