line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# [[[ HEADER ]]] |
2
|
|
|
|
|
|
|
package RPerl::InputOutput::FilehandleIn; |
3
|
4
|
|
|
4
|
|
28
|
use strict; |
|
4
|
|
|
|
|
11
|
|
|
4
|
|
|
|
|
122
|
|
4
|
4
|
|
|
4
|
|
24
|
use warnings; |
|
4
|
|
|
|
|
12
|
|
|
4
|
|
|
|
|
115
|
|
5
|
4
|
|
|
4
|
|
29
|
use RPerl::AfterSubclass; |
|
4
|
|
|
|
|
16
|
|
|
4
|
|
|
|
|
581
|
|
6
|
|
|
|
|
|
|
our $VERSION = 0.001_000; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# [[[ OO INHERITANCE ]]] |
9
|
4
|
|
|
4
|
|
32
|
use parent qw(RPerl::InputOutput); |
|
4
|
|
|
|
|
11
|
|
|
4
|
|
|
|
|
26
|
|
10
|
4
|
|
|
4
|
|
133
|
use RPerl::InputOutput; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
816
|
|
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
|
|
|
|
|
|
|
our string_hashref::method $ast_to_rperl__generate = sub { |
22
|
|
|
|
|
|
|
( my object $self, my string_hashref $modes) = @_; |
23
|
|
|
|
|
|
|
my string_hashref $rperl_source_group = { PMC => q{} }; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
# RPerl::diag( 'in FilehandleIn->ast_to_rperl__generate(), received $self = ' . "\n" . RPerl::Parser::rperl_ast__dump($self) . "\n" ); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
if ( ( ref $self ) eq 'SubExpressionOrInput_145') { # SubExpressionOrInput -> FHREF_SYMBOL_IN |
28
|
|
|
|
|
|
|
$rperl_source_group->{PMC} .= $self->{children}->[0]; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
else { |
31
|
|
|
|
|
|
|
die RPerl::Parser::rperl_rule__replace( |
32
|
|
|
|
|
|
|
'ERROR ECOGEASRP00, CODE GENERATOR, ABSTRACT SYNTAX TO RPERL: Grammar rule ' |
33
|
|
|
|
|
|
|
. ( ref $self ) |
34
|
|
|
|
|
|
|
. ' found where SubExpressionOrInput_145 expected, dying' |
35
|
|
|
|
|
|
|
) . "\n"; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
return $rperl_source_group; |
39
|
|
|
|
|
|
|
}; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
our string_hashref::method $ast_to_cpp__generate__CPPOPS_PERLTYPES = sub { |
42
|
|
|
|
|
|
|
( my object $self, my string_hashref $modes) = @_; |
43
|
|
|
|
|
|
|
my string_hashref $cpp_source_group |
44
|
|
|
|
|
|
|
= { CPP => q{// <<< RP::IO::FI __DUMMY_SOURCE_CODE CPPOPS_PERLTYPES >>>} |
45
|
|
|
|
|
|
|
. "\n" }; |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
#... |
48
|
|
|
|
|
|
|
return $cpp_source_group; |
49
|
|
|
|
|
|
|
}; |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
our string_hashref::method $ast_to_cpp__generate__CPPOPS_CPPTYPES = sub { |
52
|
|
|
|
|
|
|
( my object $self, my string_hashref $modes) = @_; |
53
|
|
|
|
|
|
|
my string_hashref $cpp_source_group |
54
|
|
|
|
|
|
|
= { CPP => q{// <<< RP::IO::FI __DUMMY_SOURCE_CODE CPPOPS_CPPTYPES >>>} |
55
|
|
|
|
|
|
|
. "\n" }; |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
#... |
58
|
|
|
|
|
|
|
return $cpp_source_group; |
59
|
|
|
|
|
|
|
}; |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
1; # end of class |