3 ms·
Macropy transforms Python's AST. So it doesn't allow anything that Python can't parse. I spent some time earlier this year looking at tapping into the Python
by kbob 6y ago
Macropy transforms Python's AST. So it doesn't allow anything that Python can't parse.
I spent some time earlier this year looking at tapping into the Python compilation process before the AST is generated, in order to allow statements that are not legal Python syntax.
It's definitely possible using the `tokenize` module, but doing it right was turning into more work than the quick hack I wanted.