[Python-3000] AST access (WAS: Adaptation vs. Generic Functions)

Talin talin at acm.org
Tue Apr 11 05:31:51 CEST 2006


Guido van Rossum <guido <at> python.org> writes:

> > So maybe this is an argument for having some
> > kind of simple parsing package in the stdlib,
> > for knocking up little specialised languages
> > like this.
> 
> Now I'll *really* try to get pgen in. Unfortunately I can't make the
> April 17 deadline.

Have a look at reflex.py (in the cheese shop), a very tiny, bare-bones lexer
which is intended for just this sort of thing. (Well, it can be used for bigger
things too - I've managed to implement a complete hand-written C++ 
parser on top of it...)

-- Talin




More information about the Python-3000 mailing list