<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">NAME
    SGML::PYX - Convertor between SGML and PYX.

SYNOPSIS
     use SGML::PYX;

     my $obj = SGML::PYX-&gt;new(%params);
     $obj-&gt;parsefile($sgml_file);

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

    Constructor.

    Returns instance of object.

    *       "output"

             Output callback, which prints output PYX code.
             Default value is subroutine:
                     my (@data) = @_;
                     print join "\n", map { encode_utf8($_) } @data;
                     print "\n";
                     return;

  "parsefile"
     $obj-&gt;parsefile($sgml_file);

    Parse input SGML file and convert to PYX output.

    Returns undef.

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

     parsefile():
             Unsupported tag type '%s'.
             Problem with attribute parsing.
                     data: %s

EXAMPLE
     use strict;
     use warnings;

     use File::Temp qw(tempfile);
     use IO::Barf qw(barf);
     use SGML::PYX;

     # Input file.
     my (undef, $input_file) = tempfile();
     my $input = &lt;&lt;'END';
     &lt;html&gt;&lt;head&gt;&lt;title&gt;Foo&lt;/title&gt;&lt;/head&gt;&lt;body&gt;&lt;div /&gt;&lt;/body&gt;&lt;/html&gt;
     END
     barf($input_file, $input);

     # Object.
     my $obj = SGML::PYX-&gt;new;

     # Parse file.
     $obj-&gt;parsefile($input_file);

     # Output:
     # (html
     # (head
     # (title
     # -Foo
     # )title
     # )head
     # (body
     # (div
     # )div
     # )body
     # )html
     # -\n

DEPENDENCIES
    Class::Utils, Encode, Error::Pure, Tag::Reader::Perl, PYX, PYX::Utils.

SEE ALSO
    Task::PYX
        Install the PYX modules.

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

AUTHOR
    Michal Josef Е&nbsp;paДЌek &lt;mailto:skim@cpan.org&gt;

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

LICENSE AND COPYRIGHT
    В© Michal Josef Е&nbsp;paДЌek 2015-2021

    BSD 2-Clause License

VERSION
    0.07

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