CAB/Analyzer/Morph/Latin/BDB.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 27 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 ## -*- Mode: CPerl -*-
2 ##
3 ## File: DTA::CAB::Analyzer::Morph::Latin::BDB.pm
4 ## Author: Bryan Jurish <moocow@cpan.org>
5 ## Description: auxilliary latin-language analysis, dictionary-based
6  
7 ##==============================================================================
8 ## Package: Analyzer::Morph::Latin::BDB
9 ##==============================================================================
10 package DTA::CAB::Analyzer::Morph::Latin::BDB;
11 use DTA::CAB::Analyzer ':child';
12 use DTA::CAB::Analyzer::Dict;
13 use DTA::CAB::Analyzer::Dict::BDB;
14 use Carp;
15 use strict;
16 our @ISA = qw(DTA::CAB::Analyzer::Dict::BDB);
17  
18 ## $obj = CLASS_OR_OBJ->new(%args)
19 ## + object structure: see DTA::CAB::Analyzer::Dict::BDB
20 sub new {
21 my $that = shift;
22 my $aut = $that->SUPER::new(
23 ##-- analysis selection
24 label => 'mlatin',
25 #analyzeGet => "lc($DICT_GET_TEXT)",
26 #analyzeSet => $DICT_SET_FST,
27 ##
28 analyzeCode => join("\n",
29 'return if (defined($_->{$lab})); ##-- avoid re-analysis',
30 '@vals='._am_tt_fst_list('($dhash->{lc($_->{text})}||"")').';',
31 '$_->{$lab}=[@vals] if (@vals);',
32 ),
33 ##-- user args
34 @_
35 );
36 return $aut;
37 }
38  
39 ##==============================================================================
40 ## Analysis Formatting
41 ##==============================================================================
42  
43  
44 1; ##-- be happy
45  
46 __END__