NAME

Module::Build::Parse::Yapp - build Parse::Yapp parsers from source

VERSION

version 0.1.2

SYNOPSIS

    use Module::Build::Parse::Yapp;
    my $build = Module::Build::Parse::Yapp->new
        (
            module_name => 'Foo::Bar',
            ...other stuff here...
        );
    $build->add_build_element('yp');
    $build->create_build_script;

DESCRIPTION

Module::Build::Parse::Yapp is a subclass of Module::Build made to build Parse::Yapp parsers from the source. Thus, prebuilt parsers do not have to be included in the source distribution.

Module::Build::Parse::Yapp looks for *.yp files under 'lib' and produces Perl modules in place of them under 'blib/lib'. Therefore, a grammar file 'lib/A/B/C.yp' will be converted to 'blib/lib/A/B/C.pm' with a package name of 'A::B::C'.

SEE ALSO

perl(1), Module::Build(3), Parse::Yapp(3)

AUTHOR

Andrius Merkys <merkys@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2020 by Andrius Merkys.

This is free software, licensed under:

  The (three-clause) BSD License