SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-B-Generate rpm build for : openSUSE Leap 15. For other distributions click perl-B-Generate.

Name : perl-B-Generate
Version : 1.56 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : lp151.1.2 Date : 2018-12-17 16:55:37
Group : Development/Libraries/Perl Source RPM : perl-B-Generate-1.56-lp151.1.2.src.rpm
Size : 0.11 MB
Packager : (none)
Summary : Create your own op trees
Description :
The \'B\' module allows you to examine the Perl op tree at runtime, in Perl
space; it\'s the basis of the Perl compiler. But what it doesn\'t let you do
is manipulate that op tree: it won\'t let you create new ops, or modify old
ones. Now you can.

Well, if you\'re intimately familiar with Perl\'s internals, you can.

\'B::Generate\' turns \'B\'\'s accessor methods into get-set methods. Hence,
instead of merely saying

$op2 = $op->next;

you can now say

$op->next($op2);

to set the next op in the chain. It also adds constructor methods to create
new ops. This is where it gets really hairy.

new B::OP ( type, flags )
new B::UNOP ( type, flags, first )
new B::BINOP ( type, flags, first, last )
new B::LOGOP ( type, flags, first, other )
new B::LISTOP ( type, flags, first, last )
new B::SVOP ( type, flags, sv )
new B::COP ( flags, name, first )

In all of the above constructors, \'type\' is either a numeric value
representing the op type (\'62\' is the addition operator in certain perl
versions, for instance) or the name of the op. (\'\"add\"\')

Incidentally, if you know about custom ops and have registed them properly
with the interpreter, you can create custom ops by name: \'new
B::OP(\"mycustomop\",0)\', or whatever.

\'first\', \'last\' and \'other\' are ops to be attached to the current op; these
should be \'B::OP\' objects. If you haven\'t created the ops yet, don\'t worry;
give a false value, and fill them in later:

$x = new B::UNOP(\"negate\", 0, undef);

$x->first($y);

In addition, one may create a new \'nextstate\' operator with

newstate B::op ( flags, label, op)

in the same manner as \'B::COP::new\' - this will also, however, add the
\'lineseq\' op.

Finally, you can set the main root and the starting op by passing ops to
the \'B::main_root\' and \'B::main_start\' functions.

This module can obviously be used for all sorts of fun and optimizational
purposes. One example will be in conjuction with source filters; have your
source filter parse an input file in a foreign language, create an op tree
for it and get Perl to execute it. Then email me and tell me how you did
it. And why.

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/openSUSE_Leap_15.1/x86_64

Content of RPM  Changelog  Provides Requires

Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server

Provides :
perl(B::Generate)
perl-B-Generate
perl-B-Generate(x86-64)

Requires :
libc.so.6()(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libc.so.6(GLIBC_2.4)(64bit)
perl(:MODULE_COMPAT_5.26.1)
perl(ExtUtils::CBuilder)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi/B
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi/B/Generate.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi/auto/B
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi/auto/B/Generate
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi/auto/B/Generate/Generate.so
/usr/share/doc/packages/perl-B-Generate
/usr/share/doc/packages/perl-B-Generate/Changes
/usr/share/doc/packages/perl-B-Generate/README
/usr/share/licenses/perl-B-Generate
/usr/share/licenses/perl-B-Generate/Artistic
/usr/share/licenses/perl-B-Generate/Copying
/usr/share/man/man3/B::Generate.3pm.gz

 
ICM