line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
10
|
|
|
10
|
|
74
|
use strict; use warnings; |
|
10
|
|
|
10
|
|
26
|
|
|
10
|
|
|
|
|
289
|
|
|
10
|
|
|
|
|
60
|
|
|
10
|
|
|
|
|
31
|
|
|
10
|
|
|
|
|
336
|
|
2
|
|
|
|
|
|
|
package YAMLScript::Core; |
3
|
|
|
|
|
|
|
|
4
|
10
|
|
|
10
|
|
66
|
use YAMLScript::Common; |
|
10
|
|
|
|
|
22
|
|
|
10
|
|
|
|
|
4107
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub ends_with_q { |
7
|
2
|
|
|
2
|
0
|
103
|
my ($str, $substr) = @_; |
8
|
2
|
|
66
|
|
|
45
|
BOOLEAN->new( |
9
|
|
|
|
|
|
|
length("$str") >= length("$substr") and |
10
|
|
|
|
|
|
|
substr("$str", 0-length("$substr")) eq "$substr" |
11
|
|
|
|
|
|
|
); |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub read_file_ys { |
15
|
0
|
|
|
0
|
0
|
|
my ($file) = @_; |
16
|
0
|
|
|
|
|
|
my $text = RT->slurp_file($file); |
17
|
0
|
|
|
|
|
|
RT->reader->read_ys($text, $file); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub read_string_ys { |
21
|
0
|
|
|
0
|
0
|
|
my ($string) = @_; |
22
|
0
|
|
|
|
|
|
RT->reader->read_ys($string, undef); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |