3 ms·
Pretty cool! How do you manage multiple target languages with a single AST parser? Do you use an intermediate AST?
by zanellia 5y ago
Pretty cool! How do you manage multiple target languages with a single AST parser? Do you use an intermediate AST?
- pure_simplicity 5y agoThat's a good question to put in the discussion tab on their GitHub repo, that way others that are interested can find it too :)
- adsharma 5y agoNo 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#L162 https://github.com/adsharma/py2many/blob/main/py2many/cli.py...