Alt-Acme-Math-XS-CPP
view release on metacpan or search on metacpan
inc/Inline/C.pm view on Meta::CPAN
use strict; use warnings;
package Inline::C;
our $VERSION = '0.67';
use Inline 0.56;
use Config;
use Data::Dumper;
use Carp;
use Cwd qw(cwd abs_path);
use File::Spec;
use Fcntl ':flock';
our @ISA = qw(Inline);
#==============================================================================
# Register this module as an Inline language support module
#==============================================================================
inc/Inline/C.pm view on Meta::CPAN
);
open MF, "> ".File::Spec->catfile($o->{API}{build_dir},"Makefile.PL")
or croak;
print MF <<END;
use ExtUtils::MakeMaker;
my %options = %\{
END
local $Data::Dumper::Terse = 1;
local $Data::Dumper::Indent = 1;
print MF Data::Dumper::Dumper(\ %options);
print MF <<END;
\};
WriteMakefile(\%options);
# Remove the Makefile dependency. Causes problems on a few systems.
sub MY::makefile { '' }
END
close MF;
}
inc/Inline/CPP/Parser/RecDescent.pm view on Meta::CPAN
= qr'(?:(?i)(?:[+-]?)(?:(?=[0123456789]|[.])(?:[0123456789]*)(?:(?:[.])(?:[0123456789]{0,}))?)(?:(?:[E])(?:(?:[+-]?)(?:[0123456789]+))|))|(?:(?i)(?:[+-]?)(?:(?=[0123456789ABCDEF]|[.])(?:[0123456789ABCDEF]*)(?:(?:[.])(?:[0123456789ABCDEF]{0,}))?)(?:...
$funccall
= qr/(?:[_a-zA-Z][_a-zA-Z0-9]*::)*[_a-zA-Z][_a-zA-Z0-9]*(?:$Inline::CPP::Parser::RecDescent::parens)?/;
#============================================================================
# Inline::CPP's grammar
#============================================================================
sub grammar {
return <<'END';
{ use Data::Dumper; }
{
sub handle_class_def {
my ($thisparser, $def) = @_;
# print "Found a class: $def->[0]\n";
my $class = $def->[0];
my @parts;
for my $part (@{$def->[1]}) { push @parts, @$_ for @$part }
push @{$thisparser->{data}{classes}}, $class
unless defined $thisparser->{data}{class}{$class};
inc/Inline/Module.pm view on Meta::CPAN
print $out "$file\n";
}
close $out;
}
}
sub smoke_system_info_dump {
my ($class, @msg) = @_;
my $msg = sprintf(@msg);
chomp $msg;
require Data::Dumper;
local $Data::Dumper::Sortkeys = 1;
local $Data::Dumper::Terse = 1;
local $Data::Dumper::Indent = 1;
my @path_files;
File::Find::find({
wanted => sub {
push @path_files, $File::Find::name if -f;
},
}, File::Spec->path());
my $dump = Data::Dumper::Dumper(
{
'ENV' => \%ENV,
'Config' => \%Config::Config,
'Path Files' => \@path_files,
},
);
Carp::confess <<"..."
Error: $msg
System Data:
inc/Parse/RecDescent.pm view on Meta::CPAN
$code = $self->_code();
if ($opt{-standalone}) {
$code =~ s/Parse::RecDescent/$runtime_package/gs;
}
print OUT $code;
print OUT "}\npackage $class; sub new { ";
print OUT "my ";
require Data::Dumper;
$code = Data::Dumper->Dump([$self], [qw(self)]);
if ($opt{-standalone}) {
$code =~ s/Parse::RecDescent/$runtime_package/gs;
}
print OUT $code;
print OUT "}";
close OUT
or croak("Can't write to new module file '$modulefile'");
}
( run in 0.841 second using v1.01-cache-2.11-cpan-a5abf4f5562 )