line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# [[[ HEADER ]]] |
2
|
|
|
|
|
|
|
package RPerl::CompileUnit; |
3
|
3
|
|
|
3
|
|
19
|
use strict; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
70
|
|
4
|
3
|
|
|
3
|
|
13
|
use warnings; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
62
|
|
5
|
3
|
|
|
3
|
|
15
|
use RPerl::AfterSubclass; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
483
|
|
6
|
|
|
|
|
|
|
our $VERSION = 0.000_012; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# [[[ OO INHERITANCE ]]] |
9
|
3
|
|
|
3
|
|
20
|
use parent qw(RPerl::GrammarRule); |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
24
|
|
10
|
3
|
|
|
3
|
|
198
|
use RPerl::GrammarRule; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
75
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# [[[ CRITICS ]]] |
13
|
|
|
|
|
|
|
## no critic qw(ProhibitUselessNoCritic ProhibitMagicNumbers RequireCheckedSyscalls) # USER DEFAULT 1: allow numeric values & print operator |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
# [[[ INCLUDES ]]] |
16
|
3
|
|
|
3
|
|
18
|
use Scalar::Util 'blessed'; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
188
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
# [[[ OO PROPERTIES ]]] |
19
|
|
|
|
|
|
|
# DEV NOTE: no active properties, this is a stub object for now, see children objects for active properties |
20
|
|
|
|
|
|
|
our hashref $properties = { |
21
|
|
|
|
|
|
|
# Program, Module, Package, and Class objects |
22
|
|
|
|
|
|
|
#name => my string $TYPED_name = undef, |
23
|
|
|
|
|
|
|
#version => my string $TYPED_version = undef, |
24
|
|
|
|
|
|
|
#includes => my object_arrayref $TYPED_includes = undef, |
25
|
|
|
|
|
|
|
#constants => my object_arrayref $TYPED_constants = undef, |
26
|
|
|
|
|
|
|
#subroutines => my object_arrayref $TYPED_subroutines = undef, |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
# Program objects only |
29
|
|
|
|
|
|
|
#operations => my object_arrayref $TYPED_operations = undef, |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
# Class objects only |
32
|
|
|
|
|
|
|
#methods => my object_arrayref $TYPED_methods = undef, |
33
|
|
|
|
|
|
|
#properties => my object_arrayref $TYPED_properties = undef, |
34
|
|
|
|
|
|
|
}; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
# [[[ SUBROUTINES & OO METHODS ]]] |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
# ... |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; # end of class |