changing the Python grammar ?

Just just at xs4all.nl
Wed Nov 20 03:38:14 EST 2002


In article <7h3zns5vkrf.fsf at pc150.maths.bris.ac.uk>,
 Michael Hudson <mwh at python.net> wrote:

> mis6 at pitt.edu (Michele Simionato) writes:
> 
> > Browsing on the on-line refencence manual you can find the formal
> > definition of the Python grammar: 
> > http://python.org/doc/current/ref/grammar.txt
> 
> Bear in mind that that is a descriptive grammar.  The real one is
> Grammar/Grammar in the source distribution.
[ ... ]
> > Notice that I do NOT want to introduce ugly perlish-like identifiers in
> > Python, I simply want to know how much it is possible to customize the
> > Python grammar: is this a simple hack or a nightmare ?
> 
> Somewhere between those.  As your customizations get more ambitious,
> you'll probably find yourself rapidly heading for the "nightmare" end
> of that scale.

Perhaps it's an idea for the OP to look at the compiler module? I have 
no experience with it, but I would expect that experiments like this 
would be more manageble with it.

Just



More information about the Python-list mailing list