[Python-ideas] Gettext syntax (was Re: Allow "assigning" to ...)
Steven D'Aprano
steve at pearwood.info
Thu Feb 12 12:08:21 CET 2015
On Thu, Feb 12, 2015 at 09:59:35PM +1100, Chris Angelico wrote:
> Hmm. How hard is it to write a parser for Python code that extends the
> grammar in some way? I know there've been a lot of proposals around
> the place for decimal.Decimal literals and empty set literals and
> such; is there an elegant way to do a proof-of-concept without
> touching the C code at all?
I'm not sure if this is the sort of thing that could be adapted:
http://www.staringispolite.com/likepython/
Obviously LikePython is a joke, but perhaps you could adapt it to do
what you want?
--
Steve
More information about the Python-ideas
mailing list