Y
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
adsharma
1676 days ago
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...
link
pure_simplicity
1677 days ago
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 :)
link
https://github.com/adsharma/py2many/blob/main/py2many/cli.py...