python source -> ast

Bjorn Pettersen bjorn at roguewave.com
Tue May 16 14:21:23 EDT 2000


Fredrik Lundh wrote:
> 
> Bjorn Pettersen <bjorn at roguewave.com> wrote:
> > A while back I remember someone creating a module similar to the
> > 'parser' module, but created more 'intuitive' ASTs (i.e. not quite as
> > deep).
> >
> > I've searched at the vaults and python.org but couldn't find it...
> > Anyone have any pointers?
> 
> iirc, it's part of python2c:
> http://lima.mudlib.org/~rassilon/p2c/
> 
> </F>

Thanks! (if anyone else is interested it's in transformer.py with a code
example in gencode.py).

-- bjorn




More information about the Python-list mailing list