Re: C port of URI::* PLUS perl prog analyser?
Kenneth Albanowski (kjahds@kjahds.com)
Mon, 10 Jun 1996 00:27:51 -0400 (EDT)
On Mon, 10 Jun 1996, Martin RJ Cleaver (HK x2012) +852 847 2012 wrote:
> 2) Anyone know of a tool to cross-reference Perl programs?
> ie. to show module couplimg, what gets used from where etc?
> - a braindead implementation is easy - you just grep for
> names of subroutines. A more reliable implementation is
> more tricky and would involve building a perl parser.
>
> Of course, if we are going to have a perl parser it is
> better to be able to tap into the one already built into
> Perl... would the structure of the innards of current perls
> allow us to do this? Is there a perl module that does parsing
> (none lept out at me when I looked)
This would be easiest to do with Malcolm's compiler -- he may even already
have a mode that does this. You'd need a list of subs defined and a list
of usages of subs, ideally with line numbers. Anything else would be icing
on the cake. (sub prototypes, variable definitions and usages, etc.)
--
Kenneth Albanowski (kjahds@kjahds.com, CIS: 70705,126)