Re: [Cython] Scope resolution in a Visitor

2011-05-24 Thread Stefan Behnel
Romain Guillebert, 24.05.2011 22:36: Sounds to me like you should attach the necessary information to the symbol table entry when analysing he "external" declaration. That's what I wanted to do that's why I asked how I could access the external declaration node Then you should have asked that

Re: [Cython] Scope resolution in a Visitor

2011-05-24 Thread Romain Guillebert
> Sounds to me like you should attach the necessary information to the > symbol table entry when analysing he "external" declaration. That's what I wanted to do that's why I asked how I could access the external declaration node > We currently store a "cname", so adding something like a property

Re: [Cython] Scope resolution in a Visitor

2011-05-24 Thread Stefan Behnel
Romain Guillebert, 24.05.2011 19:22: On Tue, May 24, 2011 at 06:56:19AM +0200, Stefan Behnel wrote: Romain Guillebert, 23.05.2011 20:33: I'm doing the PyPy backend for Cython Summer of Code project and I would like to know if there is a way of getting the AST Node responsible for the declaratio

Re: [Cython] Scope resolution in a Visitor

2011-05-24 Thread Romain Guillebert
On Tue, May 24, 2011 at 06:56:19AM +0200, Stefan Behnel wrote: > Romain Guillebert, 23.05.2011 20:33: > >I'm doing the PyPy backend for Cython Summer of Code project and I would > >like to know if there is a way of getting the AST Node responsible for > >the declaration of a variable. > > > >For ex

Re: [Cython] Scope resolution in a Visitor

2011-05-23 Thread Stefan Behnel
Romain Guillebert, 23.05.2011 20:33: I'm doing the PyPy backend for Cython Summer of Code project and I would like to know if there is a way of getting the AST Node responsible for the declaration of a variable. For example : def func(): def func(): pass func() In the situa

[Cython] Scope resolution in a Visitor

2011-05-23 Thread Romain Guillebert
Hi I'm doing the PyPy backend for Cython Summer of Code project and I would like to know if there is a way of getting the AST Node responsible for the declaration of a variable. For example : def func(): def func(): pass func() In the situation where I'm currently traversing th