udoprog / genco

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

Generic code generation possible #42

Closed Deaths-Door closed 11 months ago

Deaths-Door commented 1 year ago

I am need of generic code generation for multiple languages so eg give data like function name parms and Parms types etc and I need to generate the function , I have read the documentation but failed to find anything like that , is there a section I missed or does this lib not support this at all?

udoprog commented 11 months ago

Sorry, generic code generation is not possible since FormatInto et. al. always need to be parameterized by the language.

What I did in reproto was to have different codegen backends at a higher level that I abstracted over.