in reply to Re: Appropriate CPAN namespace for perl parser
in thread Appropriate CPAN namespace for perl parser

I haven't listed it anywhere yet, but I anyone would like to have a play with a CGI frontend to the modules, you can at

http://doug.idleplay.net/cgi-bin/CPAN/applications/psp/psp.pl

As for the code above, it is mostly ok. The quote engine is written directly off the PODs on quote and quote-likes, and is quite accurate. The only one that gets it ( which is a fixable bug ) is

print if m\foo\#comment
The rest I feel should be ok. Try it for yourself. One quick note on that. There is data attached to the quotes as to where in the quote the actual data is, so comments are recognised as comments, but they will not appear that way in the syntax highlighting ( yet ). I have some requirements that Perl itself doesn't have, I can't just discard comments or Pod, so naturally the parsing process is a bit different.
  • Comment on Re: Re: Appropriate CPAN namespace for perl parser