blib/lib/DDC/PP.pm

filter: Statementstmt 100% 34 / 34 Branchbran 75.0% 3 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 10 / 10 Podpod 0.0% 0 / 1 totaltotal 95.9% 47 / 49 CC 3 SCAR 4.1
CC
3
Cov
97%
parse
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« lib/DDC/PP/yyqparser.yp ↑ Summary blib/lib/DDC/PP/Constants.pm »
1 #-*- Mode: CPerl -*-
2  
3 ## File: DDC::PP.pm
4 ## Author: Bryan Jurish <moocow@cpan.org>
5 ## Description:
6 ## + DDC Query utilities: pure-perl drop-in replacements for DDC::XS
7 ##======================================================================
8  
9 package DDC::PP;
10 20 ▶use DDC::Concordance;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 20 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 20 ▶use DDC::PP::Constants;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 20 ▶use DDC::PP::Object;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 20 ▶use DDC::PP::CQuery;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 20 ▶use DDC::PP::CQCount;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 20 ▶use DDC::PP::CQFilter;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 20 ▶use DDC::PP::CQueryOptions;
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 20 ▶use DDC::PP::CQueryCompiler;
Subroutine BEGIN: called CC=1 SCAR=0.0
21  
22 20 our @ISA = qw();
23 20 our $VERSION = $DDC::Concordance::VERSION;
24  
25 ##======================================================================
26 ## Globals
27  
28 20 our ($COMPILER);
29  
30 ##======================================================================
31 ## Methods
32  
33 ## $CQuery = DDC::XS->parse($qstr)
34 ## + convenience wrapper
35 104 ▶sub parse {
Subroutine parse: called CC=3 SCAR=11.1
Pod undocumented
36 104 ▶ shift if (UNIVERSAL::isa($_[0],__PACKAGE__));
Branch: 1 branch
BranchTrueFalseTotal
if UNIVERSAL::isa($_[0], __PACKAGE__) 104 0 104
37 104 ▶ $COMPILER = DDC::PP::CQueryCompiler->new() if (!$COMPILER);
Branch: 1 branch
BranchTrueFalseTotal
unless $DDC::PP::COMPILER 4 100 104
38 104 return $COMPILER->ParseQuery(@_);
39 }
40  
41  
42 20 1; ##-- be happy
43  
44 __END__
« lib/DDC/PP/yyqparser.yp ↑ Summary blib/lib/DDC/PP/Constants.pm »