Pyexpander is a powerful macro processor based on python. Instead of simple macro replacement it offers evaluation of arbitrary python expressions and execution of python code. Pyexpander is Turing Complete.
A Python-based macro processing tool to extend C-like languages with DSLs. MP reduces the amount of work necessary to extend C by extracting the relevant blocks to process and calling user-supplied Python functions to handle the macro.