line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Lingua::YaTeA::ForbiddenStructure; |
2
|
5
|
|
|
5
|
|
33
|
use strict; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
133
|
|
3
|
5
|
|
|
5
|
|
27
|
use warnings; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
979
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION=$Lingua::YaTeA::VERSION; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub new |
8
|
|
|
|
|
|
|
{ |
9
|
200
|
|
|
200
|
1
|
386
|
my ($class,$form) = @_; |
10
|
200
|
|
|
|
|
347
|
my $this = {}; |
11
|
200
|
|
|
|
|
337
|
bless ($this,$class); |
12
|
200
|
|
|
|
|
465
|
$this->{FORM} = $form; |
13
|
200
|
|
|
|
|
439
|
$this->{LENGTH} = $this->setLength($form); |
14
|
200
|
|
|
|
|
457
|
return $this; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub setLength |
18
|
|
|
|
|
|
|
{ |
19
|
200
|
|
|
200
|
1
|
359
|
my ($this,$form) = @_; |
20
|
200
|
|
|
|
|
434
|
my @words = split (/ /,$form); |
21
|
200
|
|
|
|
|
597
|
return scalar @words; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub getLength |
25
|
|
|
|
|
|
|
{ |
26
|
214
|
|
|
214
|
0
|
357
|
my ($this) = @_; |
27
|
214
|
|
|
|
|
574
|
return $this->{LENGTH}; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |