line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
2
|
|
|
2
|
|
10
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
178
|
|
2
|
2
|
|
|
2
|
|
9
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
90
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package RDF::Notation3::ReaderFile; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
require 5.005_62; |
7
|
2
|
|
|
2
|
|
997
|
use RDF::Notation3::Template::TReader; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
386
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
############################################################ |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
@RDF::Notation3::ReaderFile::ISA = qw(RDF::Notation3::Template::TReader); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub new { |
14
|
10
|
|
|
10
|
0
|
21
|
my ($class, $fh) = @_; |
15
|
|
|
|
|
|
|
|
16
|
10
|
|
|
|
|
42
|
my $self = { |
17
|
|
|
|
|
|
|
FILE => $fh, |
18
|
|
|
|
|
|
|
tokens => [], |
19
|
|
|
|
|
|
|
ln => 0, |
20
|
|
|
|
|
|
|
}; |
21
|
|
|
|
|
|
|
|
22
|
10
|
|
|
|
|
27
|
bless $self, $class; |
23
|
10
|
|
|
|
|
31
|
return $self; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub _new_line { |
27
|
192
|
|
|
192
|
|
262
|
my ($self, $dont_modify) = @_; |
28
|
|
|
|
|
|
|
|
29
|
192
|
|
|
|
|
797
|
my $fh = $self->{FILE}; |
30
|
192
|
|
|
|
|
271
|
my $line = ''; |
31
|
|
|
|
|
|
|
|
32
|
192
|
|
|
|
|
366
|
until ($line) { |
33
|
254
|
|
|
|
|
738
|
$line = <$fh>; |
34
|
254
|
|
|
|
|
348
|
$self->{ln}++; |
35
|
|
|
|
|
|
|
|
36
|
254
|
100
|
100
|
|
|
1159
|
unless ($dont_modify or !$line) { |
37
|
239
|
|
|
|
|
1536
|
$line =~ s/^\s*(.*)$/$1/; |
38
|
239
|
|
|
|
|
667
|
$line =~ s/^(\#.*)$//; |
39
|
|
|
|
|
|
|
} |
40
|
254
|
100
|
|
|
|
1109
|
last if (eof); |
41
|
|
|
|
|
|
|
} |
42
|
192
|
|
|
|
|
701
|
return $line; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
1; |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
__END__ |