NAME
Perlito5::Compiler - Perl 5 compiler for Perlito5
SYNOPSIS
use Perlito5::Compiler;
use Perlito5::Javascript2::Emitter;
use Perlito5::Javascript2::Runtime;
my $perl5_source = ' print "hello, World!\n" ';
$Perlito5::PKG_NAME = 'main';
$Perlito5::PROTO = {};
my $ast = Perlito5::Grammar::exp_stmts($perl5_source, 0);
my $js_source = Perlito5::AST::CompUnit::emit_javascript2_program(
[
Perlito5::AST::CompUnit->new( name => 'main', body => Perlito5::Match::flat($ast) )
]
);
DESCRIPTION
This module loads the tools to transform Perl 5 source code into a syntax tree.
AUTHORS
Flavio Soibelmann Glock <fglock@gmail.com>.
COPYRIGHT
Copyright 2015 by Flavio Soibelmann Glock.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.