| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | #-*- Mode: CPerl -*- | 
| 2 |  |  |  |  |  |  |  | 
| 3 |  |  |  |  |  |  | ## File: DDC::PP.pm | 
| 4 |  |  |  |  |  |  | ## Author: Bryan Jurish | 
| 5 |  |  |  |  |  |  | ## Description: | 
| 6 |  |  |  |  |  |  | ##  + DDC Query utilities: pure-perl drop-in replacements for DDC::XS | 
| 7 |  |  |  |  |  |  | ##====================================================================== | 
| 8 |  |  |  |  |  |  |  | 
| 9 |  |  |  |  |  |  | package DDC::PP; | 
| 10 | 20 |  |  | 20 |  | 939212 | use DDC::Concordance; | 
|  | 20 |  |  |  |  | 56 |  | 
|  | 20 |  |  |  |  | 606 |  | 
| 11 | 20 |  |  | 20 |  | 116 | use strict; | 
|  | 20 |  |  |  |  | 47 |  | 
|  | 20 |  |  |  |  | 429 |  | 
| 12 |  |  |  |  |  |  |  | 
| 13 | 20 |  |  | 20 |  | 13459 | use DDC::PP::Constants; | 
|  | 20 |  |  |  |  | 54 |  | 
|  | 20 |  |  |  |  | 639 |  | 
| 14 | 20 |  |  | 20 |  | 9474 | use DDC::PP::Object; | 
|  | 20 |  |  |  |  | 60 |  | 
|  | 20 |  |  |  |  | 669 |  | 
| 15 | 20 |  |  | 20 |  | 10117 | use DDC::PP::CQuery; | 
|  | 20 |  |  |  |  | 61 |  | 
|  | 20 |  |  |  |  | 652 |  | 
| 16 | 20 |  |  | 20 |  | 9514 | use DDC::PP::CQCount; | 
|  | 20 |  |  |  |  | 61 |  | 
|  | 20 |  |  |  |  | 685 |  | 
| 17 | 20 |  |  | 20 |  | 9630 | use DDC::PP::CQFilter; | 
|  | 20 |  |  |  |  | 63 |  | 
|  | 20 |  |  |  |  | 802 |  | 
| 18 | 20 |  |  | 20 |  | 9258 | use DDC::PP::CQueryOptions; | 
|  | 20 |  |  |  |  | 62 |  | 
|  | 20 |  |  |  |  | 631 |  | 
| 19 |  |  |  |  |  |  |  | 
| 20 | 20 |  |  | 20 |  | 9530 | use DDC::PP::CQueryCompiler; | 
|  | 20 |  |  |  |  | 70 |  | 
|  | 20 |  |  |  |  | 2731 |  | 
| 21 |  |  |  |  |  |  |  | 
| 22 |  |  |  |  |  |  | our @ISA = qw(); | 
| 23 |  |  |  |  |  |  | our $VERSION = $DDC::Concordance::VERSION; | 
| 24 |  |  |  |  |  |  |  | 
| 25 |  |  |  |  |  |  | ##====================================================================== | 
| 26 |  |  |  |  |  |  | ## Globals | 
| 27 |  |  |  |  |  |  |  | 
| 28 |  |  |  |  |  |  | our ($COMPILER); | 
| 29 |  |  |  |  |  |  |  | 
| 30 |  |  |  |  |  |  | ##====================================================================== | 
| 31 |  |  |  |  |  |  | ## Methods | 
| 32 |  |  |  |  |  |  |  | 
| 33 |  |  |  |  |  |  | ## $CQuery = DDC::XS->parse($qstr) | 
| 34 |  |  |  |  |  |  | ##  + convenience wrapper | 
| 35 |  |  |  |  |  |  | sub parse { | 
| 36 | 98 | 50 |  | 98 | 0 | 35935 | shift if (UNIVERSAL::isa($_[0],__PACKAGE__)); | 
| 37 | 98 | 100 |  |  |  | 315 | $COMPILER = DDC::PP::CQueryCompiler->new() if (!$COMPILER); | 
| 38 | 98 |  |  |  |  | 305 | return $COMPILER->ParseQuery(@_); | 
| 39 |  |  |  |  |  |  | } | 
| 40 |  |  |  |  |  |  |  | 
| 41 |  |  |  |  |  |  |  | 
| 42 |  |  |  |  |  |  | 1; ##-- be happy | 
| 43 |  |  |  |  |  |  |  | 
| 44 |  |  |  |  |  |  | __END__ |