] > Re: analysis (Logilab.org)

Email Re: analysis

to
subject
Re: analysis
date
2005/09/12 14:42
Sylvain,

> I've noticed your new analysis project, and it seems to have a lot of
> common with the logilab.common.astng package (part of the logilab-common
> package for the moment, but I will soon release it standalone), which is
> the backend used by pylint [2] to make its analysis. The idea is the same:
> use the compiler.ast representation, and add addtional information on
> nodes by visiting the tree. It also add new methods by monkey patching
> compiler.ast node classes. Did you have a look at this ? That may be a
> good oportunities to merge efforts and ideas :)

Yes, I saw the Logilab packages a long time ago, but I was under the 
impression that pylint was only a documentation tool that relied on explicit 
interface declarations. Perhaps I should take a closer look.

In fact, the Logilab packages that I remember most are those which convert 
Python source code and vCalendar files into SAX events, and since I've also 
subsequently been looking at converting iCalendar files into other 
representations, I suppose I've either been duplicating a lot of work or 
exploring avenues that such work possibly didn't cover.

But I agree that there's scope for working together on such things, and I 
believe that the compiler.ast objects are a good enough starting point - they 
provide a fairly standard representation that could be manipulated by 
different kinds of tools: analyzers, documentation tools, code generators, 
and so on. I'll take a better look at the astng package and see what it has 
to offer. Thanks for telling me about it!

Regards,

Paul


in thread
has reply