in reply to Speeding up RecDesent parser for Perl Code

You know what you are trying to do has been done already, right?

Normally I'd be suggesting PPI here normally.

Except that PPI isn't that fast either, so I'm unsure if it would be a significant advantage in that respect (if speed is of primary importance).

HOWEVER, using PPI would certainly be more accurate.
  • Comment on Re: Speeding up RecDesent parser for Perl Code

Replies are listed 'Best First'.
Re^2: Speeding up RecDesent parser for Perl Code
by Outaspace (Scribe) on Sep 05, 2006 at 10:57 UTC
    I have looked at the PPI modul allready, but I think I have to parse the result of PPI to get the thinks that I want. So I need double parsing and it would be slower than one RD run. Also PPI seems a bit to accurate for me.

    Andre
      PPI spits out an object tree, so it's not a case of parse, rather
      my @packages = PPI::Document->new('filename.pm') ->find('PPI::Statement::Package');