You've written a parser, so it should go in the Parse:: namespace. I believe that Parse::Perl is being worked on right now, but that does seem like an appropriate namespace.

I have a couple of questions about your parser. Do you have tests for it? Do you have a distribution or documentation? I had a few things I wanted to throw at it which I was pretty sure would give me an idea of how robust it is, but all I could could find was a bunch of HTML representations of the code. It wouldn't be too hard to take those and strip out the line numbers, but it would be nice to have something to play with and give you feedback on.

Incidentally, in your regex lib, I noticed that you appear to define a package as having the symbols separated by a double colon, when a single quote mark is also allowed (for Perl4 compatibility - see the D'oh module). You also have the Unix and Mac newlines reversed.

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.


In reply to (Ovid) Re: Appropriate CPAN namespace for perl parser by Ovid
in thread Appropriate CPAN namespace for perl parser by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.