Perl6RE - Sample Perl6 grammar for regular expressions
use Perl6RE; use Data::Dumper; use Parse::RecDescent; $p = Parse::RecDescent->new($Perl6RE::grammar); print Dumper($p->rx('rx/ ^ <$digit>+ $$ /'));
Simply loads the Perl6 RE grammar suitable for Parse::RecDescent. Contains no actual parsing code beyond returning a nested array of arrays consisting of a pseudo-rational grammar for Perl6 REs
None by default.
Jeff Goff, <jgoff@perl.org>
perl, parrot
To install Ruby, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Ruby
CPAN shell
perl -MCPAN -e shell install Ruby
For more information on module installation, please visit the detailed CPAN module installation guide.