Hacker News new | ask | show | jobs
by zanellia 1679 days ago
Pretty cool! How do you manage multiple target languages with a single AST parser? Do you use an intermediate AST?
2 comments

No intermediate AST. To understand the various stages of transpilation and separation of language specific and independent rewriters, this file is a good starting point:

https://github.com/adsharma/py2many/blob/main/py2many/cli.py...

That's a good question to put in the discussion tab on their GitHub repo, that way others that are interested can find it too :)