from
Sylvain Thénault <sylvain.thenault at logilab dot fr>
to
Paul Boddie <paul at boddie dot org dot uk>
cc
Sylvain Thénault <sylvain.thenault at logilab dot fr>
subject
Re: analysis
date
On Monday 12 September à 14:42, Paul Boddie wrote:2005/09/12 14:51
> 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.
nop, pylint is a source code analysis tool. I try to find bugs, bad
style coding and other problems. Its original idea was to enforce
enterprise coding standards.
> In fact, the Logilab packages that I remember most are those which convert
> Python source code and vCalendar files into SAX events,
hey, that's really old packages ! Take a look at www.logilab.org/projects,
there is a lot of new packages since that time :)
> 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.
ha, free software... ;)
> 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!
Your welcome ! I hope you'll find it useful, and would be happy to
consider any comment if you think it doesn't fit your need or anything
else.
--
Sylvain Thénault LOGILAB, Paris (France).
http://www.logilab.com http://www.logilab.fr http://www.logilab.org
