<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">NAME
    PYX::Optimization - PYX optimization Perl class.

SYNOPSIS
     use PYX::Optimization;

     my $obj = PYX::Parser-&gt;new(%parameters);
     $obj-&gt;parse($pyx, $out);
     $obj-&gt;parse_file($pyx_file, $out);
     $obj-&gt;parse_handle($pyx_file_handler, $out);

METHODS
  "new"
     my $obj = PYX::Parser-&gt;new(%parameters);

    Constructor.

    Returns instance of object.

    *       "output_handler"

            Output handler. Default value is STDOUT.

  "parse"
     $obj-&gt;parse($pyx, $out);

    Optimize PYX string $pyx. Output print to output handler. If $out not
    present, use 'output_handler'.

    Returns undef.

  "parse_file"
     $obj-&gt;parse_file($pux_file, $out);

    Optimize PYX file $pyx_file. Output print to output handler. If $out not
    present, use 'output_handler'.

    Returns undef.

  "parse_handler"
     $obj-&gt;parse_handle($pyx_file_handler, $out);

    Optimize PYX file handler $pyx_file_handler. Output print to output
    handler. If $out not present, use 'output_handler'.

    Returns undef.

ERRORS
     new():
             From Class::Utils::set_params():
                     Unknown parameter '%s'.

EXAMPLE1
     use strict;
     use warnings;

     use PYX::Optimization;

     # Content.
     my $pyx_to_optimize = &lt;&lt;'END';
     (element
     - data \n data
     )element
     _       comment
     (element
     -                                 \n foo
     )element
     END

     PYX::Optimization-&gt;new-&gt;parse($pyx_to_optimize);

     # Output:
     # (element
     # -data data
     # )element
     # _comment
     # (element
     # -foo
     # )element

EXAMPLE2
     use strict;
     use warnings;

     use PYX::Optimization;

     if (@ARGV &lt; 1) {
             print STDERR "Usage: $0 pyx_file\n";
             exit 1;
     }
     my $pyx_file = $ARGV[0];

     PYX::Optimization-&gt;new-&gt;parse_file($pyx_file);

     # Output:
     # Usage: __SCRIPT__ pyx_file

DEPENDENCIES
    Class::Utils, Error::Pure, PYX, PYX::Parser, PYX::Utils.

SEE ALSO
    Task::PYX
        Install the PYX modules.

REPOSITORY
    &lt;https://github.com/michal-josef-spacek/PYX-Optimization&gt;

AUTHOR
    Michal Josef Ĺ&nbsp;paÄŤek &lt;mailto:skim@cpan.org&gt;

    &lt;http://skim.cz&gt;

LICENSE AND COPYRIGHT
    Â© 2011-2021 Michal Josef Ĺ&nbsp;paÄŤek

    BSD 2-Clause License

VERSION
    0.02

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