line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# [[[ HEADER ]]] |
2
|
|
|
|
|
|
|
package RPerl::InputOutput::FilehandleIn; |
3
|
3
|
|
|
3
|
|
18
|
use strict; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
73
|
|
4
|
3
|
|
|
3
|
|
13
|
use warnings; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
71
|
|
5
|
3
|
|
|
3
|
|
17
|
use RPerl::AfterSubclass; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
397
|
|
6
|
|
|
|
|
|
|
our $VERSION = 0.001_000; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# [[[ OO INHERITANCE ]]] |
9
|
3
|
|
|
3
|
|
19
|
use parent qw(RPerl::InputOutput); |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
16
|
|
10
|
3
|
|
|
3
|
|
95
|
use RPerl::InputOutput; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
583
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# [[[ CRITICS ]]] |
13
|
|
|
|
|
|
|
## no critic qw(ProhibitUselessNoCritic ProhibitMagicNumbers RequireCheckedSyscalls) # USER DEFAULT 1: allow numeric values & print operator |
14
|
|
|
|
|
|
|
## no critic qw(RequireInterpolationOfMetachars) # USER DEFAULT 2: allow single-quoted control characters & sigils |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
# [[[ OO PROPERTIES ]]] |
17
|
|
|
|
|
|
|
our hashref $properties = {}; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
# [[[ SUBROUTINES & OO METHODS ]]] |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub ast_to_rperl__generate { |
22
|
0
|
|
|
0
|
|
|
{ my string_hashref::method $RETURN_TYPE }; |
|
0
|
|
|
|
|
|
|
23
|
0
|
|
|
|
|
|
( my object $self, my string_hashref $modes) = @ARG; |
24
|
0
|
|
|
|
|
|
my string_hashref $rperl_source_group = { PMC => q{} }; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
# RPerl::diag( 'in FilehandleIn->ast_to_rperl__generate(), received $self = ' . "\n" . RPerl::Parser::rperl_ast__dump($self) . "\n" ); |
27
|
|
|
|
|
|
|
|
28
|
0
|
0
|
|
|
|
|
if ( ( ref $self ) eq 'SubExpressionOrInput_159') { # SubExpressionOrInput -> FHREF_SYMBOL_IN |
29
|
0
|
|
|
|
|
|
$rperl_source_group->{PMC} .= $self->{children}->[0]; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
else { |
32
|
0
|
|
|
|
|
|
die RPerl::Parser::rperl_rule__replace( |
33
|
|
|
|
|
|
|
'ERROR ECOGEASRP00, CODE GENERATOR, ABSTRACT SYNTAX TO RPERL: Grammar rule ' |
34
|
|
|
|
|
|
|
. ( ref $self ) |
35
|
|
|
|
|
|
|
. ' found where SubExpressionOrInput_159 expected, dying' |
36
|
|
|
|
|
|
|
) . "\n"; |
37
|
|
|
|
|
|
|
} |
38
|
0
|
|
|
|
|
|
return $rperl_source_group; |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
sub ast_to_cpp__generate__CPPOPS_PERLTYPES { |
42
|
0
|
|
|
0
|
|
|
{ my string_hashref::method $RETURN_TYPE }; |
|
0
|
|
|
|
|
|
|
43
|
0
|
|
|
|
|
|
( my object $self, my string_hashref $modes) = @ARG; |
44
|
0
|
|
|
|
|
|
my string_hashref $cpp_source_group |
45
|
|
|
|
|
|
|
= { CPP => q{// <<< RP::IO::FI __DUMMY_SOURCE_CODE CPPOPS_PERLTYPES >>>} |
46
|
|
|
|
|
|
|
. "\n" }; |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
#... |
49
|
0
|
|
|
|
|
|
return $cpp_source_group; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
sub ast_to_cpp__generate__CPPOPS_CPPTYPES { |
53
|
0
|
|
|
0
|
|
|
{ my string_hashref::method $RETURN_TYPE }; |
|
0
|
|
|
|
|
|
|
54
|
0
|
|
|
|
|
|
( my object $self, my string_hashref $modes) = @ARG; |
55
|
0
|
|
|
|
|
|
my string_hashref $cpp_source_group |
56
|
|
|
|
|
|
|
= { CPP => q{// <<< RP::IO::FI __DUMMY_SOURCE_CODE CPPOPS_CPPTYPES >>>} |
57
|
|
|
|
|
|
|
. "\n" }; |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
#... |
60
|
0
|
|
|
|
|
|
return $cpp_source_group; |
61
|
|
|
|
|
|
|
} |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
1; # end of class |