ANN: MacroPy: quasiquotes, case classes, LINQ and more! Now available on PyPI

2013-05-08 Thread Haoyi Li
Hey All, MacroPy is an implementation of Macros in Python which lets you very easily modify the semantics of a python program. Apart from the implementation of macros themselves, we also have a pretty impressive list of feature demos that were implemented on top of macros: - Quasiquotes, a qui

ANN: MacroPy: bringing Macros to Python

2013-04-23 Thread Haoyi Li
MacroPy is a pure-python library that allows user-defined AST rewrites as part of the import process (using PEP 302). In short, it makes mucking around with Python's semantics so easy as to be almost trivial: you write a function that takes an AST and returns an AST, register it as a macro, and