line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Lingua::YaTeA::ParsingPatternRecord; |
2
|
5
|
|
|
5
|
|
36
|
use strict; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
139
|
|
3
|
5
|
|
|
5
|
|
34
|
use warnings; |
|
5
|
|
|
|
|
8
|
|
|
5
|
|
|
|
|
123
|
|
4
|
|
|
|
|
|
|
|
5
|
5
|
|
|
5
|
|
1987
|
use Lingua::YaTeA::ParsingPattern; |
|
5
|
|
|
|
|
16
|
|
|
5
|
|
|
|
|
84
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION=$Lingua::YaTeA::VERSION; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub new |
10
|
|
|
|
|
|
|
{ |
11
|
280
|
|
|
280
|
1
|
519
|
my ($class,$name) = @_; |
12
|
280
|
|
|
|
|
503
|
my $this = {}; |
13
|
280
|
|
|
|
|
497
|
bless ($this,$class); |
14
|
280
|
|
|
|
|
622
|
$this->{NAME} = $name; |
15
|
280
|
|
|
|
|
564
|
$this->{PARSING_PATTERNS} = (); |
16
|
280
|
|
|
|
|
1035
|
return $this; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub getName |
20
|
|
|
|
|
|
|
{ |
21
|
0
|
|
|
0
|
1
|
0
|
my ($this) = @_; |
22
|
0
|
|
|
|
|
0
|
return $this->{NAME}; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub addPattern |
27
|
|
|
|
|
|
|
{ |
28
|
280
|
|
|
280
|
1
|
528
|
my ($this,$pattern) = @_; |
29
|
280
|
|
|
|
|
396
|
push @{$this->{PARSING_PATTERNS}}, $pattern; |
|
280
|
|
|
|
|
880
|
|
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub getPatterns |
33
|
|
|
|
|
|
|
{ |
34
|
66
|
|
|
66
|
1
|
146
|
my ($this) = @_; |
35
|
66
|
|
|
|
|
265
|
return $this->{PARSING_PATTERNS}; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
sub print |
39
|
|
|
|
|
|
|
{ |
40
|
0
|
|
|
0
|
1
|
|
my ($this) = @_; |
41
|
0
|
|
|
|
|
|
my $pattern; |
42
|
0
|
|
|
|
|
|
print"["; |
43
|
0
|
|
|
|
|
|
print $this->getName . "\n"; |
44
|
0
|
|
|
|
|
|
foreach $pattern (@{$this->getPatterns}) |
|
0
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
{ |
46
|
0
|
|
|
|
|
|
$pattern->print; |
47
|
|
|
|
|
|
|
} |
48
|
0
|
|
|
|
|
|
print "]\n"; |
49
|
|
|
|
|
|
|
} |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
1; |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
__END__ |