<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">NAME
    PYX::Stack - Processing PYX data or file and process element stack.

SYNOPSIS
     use PYX::Stack;
     my $obj = PYX::Stack-&gt;new(%parameters);
     $obj-&gt;parse($pyx, $out);
     $obj-&gt;parse_file($input_file, $out);
     $obj-&gt;parse_handle($input_file_handler, $out);

METHODS
    "new(%parameters)"
             Constructor.

            *       "bad_end"

                     Check bad end of element.
                     If set, print error on unopened end of element.
                     Default value is 0.

            *       "output_handler"

                     Output handler.
                     Default value is \*STDOUT.

            *       "verbose"

                     Verbose flag.
                     If set, each start element prints information to 'output_handler'.
                     Default value is 0.

    "parse($pyx[, $out])"
             Parse PYX text or array of PYX text.
             If $out not present, use 'output_handler'.
             Returns undef.

    "parse_file($input_file[, $out])"
             Parse file with PYX data.
             If $out not present, use 'output_handler'.
             Returns undef.

    "parse_handler($input_file_handler[, $out])"
             Parse PYX handler.
             If $out not present, use 'output_handler'.
             Returns undef.

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

     parse():
             Bad end of element.
                     Element: %s
             Stack has some elements.

     parse_file():
             Bad end of element.
                     Element: %s
             Stack has some elements.

     parse_handler():
             Bad end of element.
                     Element: %s
             Stack has some elements.

EXAMPLE1
     # Pragmas.
     use strict;
     use warnings;

     # Modules.
     use PYX::Stack;

     # Example data.
     my $pyx = &lt;&lt;'END';
     (begin
     (middle
     (end
     -data
     )end
     )middle
     )begin
     END

     # PYX::Stack object.
     my $obj = PYX::Stack-&gt;new(
             'verbose' =&gt; 1,
     );

     # Parse.
     $obj-&gt;parse($pyx);

     # Output:
     # begin
     # begin/middle
     # begin/middle/end
     # begin/middle
     # begin

EXAMPLE2
     # Pragmas.
     use strict;
     use warnings;

     # Modules.
     use Error::Pure;
     use PYX::Stack;

     # Error output.
     $Error::Pure::TYPE = 'PrintVar';

     # Example data.
     my $pyx = &lt;&lt;'END';
     (begin
     (middle
     (end
     -data
     )middle
     )begin
     END

     # PYX::Stack object.
     my $obj = PYX::Stack-&gt;new;

     # Parse.
     $obj-&gt;parse($pyx);

     # Output:
     # PYX::Stack: Stack has some elements.

EXAMPLE3
     # Pragmas.
     use strict;
     use warnings;

     # Modules.
     use Error::Pure;
     use PYX::Stack;

     # Error output.
     $Error::Pure::TYPE = 'PrintVar';

     # Example data.
     my $pyx = &lt;&lt;'END';
     (begin
     (middle
     -data
     )end
     )middle
     )begin
     END

     # PYX::Stack object.
     my $obj = PYX::Stack-&gt;new(
             'bad_end' =&gt; 1,
     );

     # Parse.
     $obj-&gt;parse($pyx);

     # Output:
     # PYX::Stack: Bad end of element.
     # Element: end

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

SEE ALSO
    Task::PYX
        Install the PYX modules.

REPOSITORY
    &lt;https://github.com/tupinek/PYX-Stack&gt;

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

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

LICENSE AND COPYRIGHT
     Â© 2011-2015 Michal Ĺ&nbsp;paÄŤek
     BSD 2-Clause License

VERSION
    0.04

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