udoprog / genco

A whitespace-aware quasiquoter for beautiful code generation.
Apache License 2.0
181 stars 11 forks source link

Support C #22

Closed isaiahpettingill closed 11 months ago

isaiahpettingill commented 2 years ago

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.

udoprog commented 2 years ago

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

ajwerner commented 11 months ago

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

udoprog commented 11 months ago

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

udoprog commented 11 months ago

Released now in 0.17.6.