[Python-ideas] Gettext syntax (was Re: Allow "assigning" to ...)

Paul Moore p.f.moore at gmail.com
Thu Feb 12 13:06:39 CET 2015


On 12 February 2015 at 11:27, Chris Angelico <rosuav at gmail.com> wrote:
> Basically, what I want is Python's own ast.parse(), but
> able to be extended to handle specific additional grammar; currently,
> ast.parse in CPython drops through to the C parser, which means the
> grammar has to be absolutely exactly the grammar of the host language.

You may want to take a look at MacroPy
(https://github.com/lihaoyi/macropy). I think it's aimed at the sort
of thing you're talking about.

Paul


More information about the Python-ideas mailing list