Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • A Perl6 grammar that looks like it might parse CLU. Useless until Perl6::Rules gets released.
    Matthijs van Duin [cpan.org] has written an alpha version of a perl6 grammar -> perl5 regexp translator and if you ask nicely I'm sure he'll be happy to share. Good luck with CLU!
    --

    broquaint out

    • Running my alpha rules on an alpha translator. Heh.

      I'll stick with Parse::RecDescent for the parser for now. It mostly works, ignoring the bugs I haven't found yet. There's one spot where I mangled the grammar to remove left recursion, but I don't think it changed the semantics.

  • If you're feeling more ambitious, there's a start at a P6Regex to Parrot compiler in the languages/perl6 subdirectory of the Parrot distribution. It's definitely incomplete, but see the README for what is implemented, and the t/ and example/ directories for some of what can be done. There is also a (perhaps clearer) regex-to-parrot compiler in languages/regex, which could be extended to handle perl6 regexes.

    HTH,
    /s