Ask HN: Suggestions for Building a Code Generation

Ask HN: Suggestions for Building a Code Generation

2 by patrick91 | 0 comments on Hacker News.

Hi there! I was looking into building a generic code generation tool, that would take a GraphQL schema in and would build code in Python, JavaScript, etc. I've built something like this using a template engine like Jinja, but I'm not sure if that's the best approach, part of me wants to use AST for the languages and a printer to get the AST to code, but I don't, I'm open for suggestions The idea is to also make it easy to built your own codegen output using plugins



Comments

Popular posts from this blog

Intentional dark pattern by Coinbase or just terrible UI?