The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Language::P - parsing/compiling Perl5 code using Perl5

SYNOPSYS

  my $p = Language::P->new_from_argv
              ( \@ARGV,
                { runtime   => $runtime,
                  generator => $generator,
                  } );

  $p->run;

DESCRIPTION

An experiment: a Perl 5 parser written in Perl 5, which might in time have multiple backends. For now it only has a partial parser implementation and a toy runtime written in Perl 5.

Time permitting it will acquire a Parrot (and Java and .Net and ... runtime).

METHODS

new_from_argv

  $p = Language::P->new_from_argv( \@ARGV,
                                   { generator => $code_generator,
                                     runtime   => $runtime,
                                     } );

Constructs a Language::P object, initializes it calling initialize passing the second argument, processes command-line arguments ten uses anything remaining in the command line as a program name and its arguments.

AUTHOR

Mattia Barbon <mbarbon@cpan.org>

LICENSE

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SOURCES

The latest sources can be found on GitHub at http://github.com/mbarbon/language-p/tree