CAB/Analyzer/Morph/Latin/CDB.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::CDB.pm
4 ## Author: Bryan Jurish <moocow@cpan.org>
5 ## Description: auxilliary latin-language analysis, dictionary-based
6  
7 ##==============================================================================
8 ## Package: Analyzer::Morph::Latin::CDB
9 ##==============================================================================
10 package DTA::CAB::Analyzer::Morph::Latin::CDB;
11 use DTA::CAB::Analyzer ':child';
12 use DTA::CAB::Analyzer::Dict;
13 use DTA::CAB::Analyzer::Dict::CDB;
14 use Carp;
15 use strict;
16 our @ISA = qw(DTA::CAB::Analyzer::Dict::CDB);
17  
18 ## $obj = CLASS_OR_OBJ->new(%args)
19 ## + object structure: see DTA::CAB::Analyzer::Dict::CDB
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 '@vals='._am_tt_fst_list('($dhash->{lc('._am_xlit.')}||"")').';',
32 '$_->{$lab}=[@vals] if (@vals && (!$_->{xlit} || $_->{xlit}{isLatinExt}));',
33 ),
34 ##-- user args
35 @_
36 );
37 return $aut;
38 }
39  
40 ##==============================================================================
41 ## Analysis Formatting
42 ##==============================================================================
43  
44  
45 1; ##-- be happy
46  
47 __END__