Parsing other languages -> function map

Steve lonetwin at gmail.com
Tue Jul 20 02:45:42 EDT 2004


Hi Richard,

On 19 Jul 2004 17:52:32 -0700, Richard Shea <richardshea at fastmail.fm> wrote:
> Hi - [This is a Python question - bear with me !] I've got quite a
> number of PHP scripts which include many functions which call each
> other. I'm interested in having a means to determine which function
> gets called from which other functions.
    
    I use cscope ( http://cscope.sourceforge.net/ ) for most of my
code browsing (actually cscope+the cscope_maps.vim plugin). Although
it was designed for looking at C code, due to the fact that it's
parsing is more text oriented rather than specific to any language, it
does a great job with python. I suggest you give it a spin with php
code and see how things work.

      At a tangential thread, the idea of a tool like cscope which can
support different languages using a plugin mechanism is really
appealing. There always are things like source-navigator (
http://sourcenav.sourceforge.net/ ) , but that is more of an IDE
including the kitchen-sink, which I personally do not like. It'd be
cool to have a tool that just does one thing and does it properly,
also, the coolness factor increases tremendously when the output can
be obtained at stdout because we can then write a nice lil' plugin for
our editor and instantly gloat that the _other_ editor cannot do this
:).
     I'd be interested in writing one up if there is someone out there
who could help out with the design and stuff. (pyscope anyone ?)


Regards
Steve



More information about the Python-list mailing list