<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">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);
        print Dumper $ast;
        my $js_source = Perlito5::AST::CompUnit::emit_javascript2_program(
            [
                Perlito5::AST::CompUnit-&gt;new( name =&gt; 'main', body =&gt; Perlito5::Match::flat($ast) )
            ]
        );
        print $js_source;

COMMAND LINE
        perlito5 --help

        perlito5 -Cjs program.pl

DESCRIPTION
    This program reads Perl5 source code and generates native code.

    The compiler options are available with the command:

        perlito5 -h

AUTHORS
    Flavio Soibelmann Glock &lt;fglock@gmail.com&gt;.

SEE ALSO
    &lt;http://fglock.github.io/Perlito&gt;

COPYRIGHT
    Copyright 2011, 2012, 2015 by Flavio Soibelmann Glock and others.

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

    See &lt;http://dev.perl.org/licenses/artistic.html&gt;

</pre></body></html>