line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# [[[ HEADER ]]] |
2
|
|
|
|
|
|
|
package RPerl::NonGenerator; |
3
|
4
|
|
|
4
|
|
24
|
use strict; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
120
|
|
4
|
4
|
|
|
4
|
|
24
|
use warnings; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
104
|
|
5
|
4
|
|
|
4
|
|
38
|
use RPerl::AfterSubclass; |
|
4
|
|
|
|
|
12
|
|
|
4
|
|
|
|
|
604
|
|
6
|
|
|
|
|
|
|
our $VERSION = 0.001_100; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# [[[ OO INHERITANCE ]]] |
9
|
4
|
|
|
4
|
|
29
|
use parent qw(RPerl::CompileUnit::Module::Class); |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
27
|
|
10
|
4
|
|
|
4
|
|
224
|
use RPerl::CompileUnit::Module::Class; |
|
4
|
|
|
|
|
12
|
|
|
4
|
|
|
|
|
111
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# [[[ INCLUDES ]]] |
13
|
4
|
|
|
4
|
|
22
|
use RPerl::Grammar; |
|
4
|
|
|
|
|
12
|
|
|
4
|
|
|
|
|
1070
|
|
14
|
|
|
|
|
|
|
#use RPerl::Parser; |
15
|
|
|
|
|
|
|
#eval 'require RPerl::Parser;'; |
16
|
|
|
|
|
|
|
eval {require RPerl::Parser;}; |
17
|
|
|
|
|
|
|
if ($EVAL_ERROR and ($EVAL_ERROR =~ /attempt to reload/i)){ |
18
|
|
|
|
|
|
|
delete $INC{'RPerl::Parser'}; |
19
|
|
|
|
|
|
|
require RPerl::Parser; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
elsif ($EVAL_ERROR ne q{}) { die $EVAL_ERROR; } |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
# [[[ OO PROPERTIES ]]] |
24
|
|
|
|
|
|
|
our hashref $properties = {}; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
# [[[ SUBROUTINES & OO METHODS ]]] |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
our string_hashref::method $ast_to_rperl__generate = sub { |
29
|
|
|
|
|
|
|
( my object $self, my string_hashref $modes) = @_; |
30
|
|
|
|
|
|
|
RPerl::diag('in NonGenerator->ast_to_rperl__generate(), received $self = ' . "\n" . RPerl::Parser::rperl_ast__dump($self) . "\n"); |
31
|
|
|
|
|
|
|
# RPerl::diag('in NonGenerator->ast_to_rperl__generate(), received $modes = ' . "\n" . Dumper($modes) . "\n"); |
32
|
|
|
|
|
|
|
croak 'ERROR ECOGENG00, GENERATOR: Attempt to generate output source code from non-generating class ' . ::class($self) . ', croaking'; |
33
|
|
|
|
|
|
|
}; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
our string_hashref::method $ast_to_cpp__generate__CPPOPS_PERLTYPES = sub { |
36
|
|
|
|
|
|
|
( my object $self, my string_hashref $modes) = @_; |
37
|
|
|
|
|
|
|
croak 'ERROR ECOGENG00, GENERATOR: Attempt to generate output source code from non-generating class ' . ::class($self) . ', croaking'; |
38
|
|
|
|
|
|
|
}; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
our string_hashref::method $ast_to_cpp__generate__CPPOPS_CPPTYPES = sub { |
41
|
|
|
|
|
|
|
( my object $self, my string_hashref $modes) = @_; |
42
|
|
|
|
|
|
|
croak 'ERROR ECOGENG00, GENERATOR: Attempt to generate output source code from non-generating class ' . ::class($self) . ', croaking'; |
43
|
|
|
|
|
|
|
}; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
1; # end of class |