2 ms·
I wrote a (batshit crazy) Python library to do exactly what you're talking about. It converts Python ASTs into S-expressions (just Python lists) and allows you
by daeken 15y ago
I wrote a (batshit crazy) Python library to do exactly what you're talking about. It converts Python ASTs into S-expressions (just Python lists) and allows you to apply 'macros' to methods just by decorators.
- daeken 15y agoI guess it would've been helpful to actually link the project! https://github.com/daeken/transformana https://github.com/daeken/transformana