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
|
|
944643
|
use DDC::Concordance; |
|
20
|
|
|
|
|
53
|
|
|
20
|
|
|
|
|
655
|
|
11
|
20
|
|
|
20
|
|
110
|
use strict; |
|
20
|
|
|
|
|
39
|
|
|
20
|
|
|
|
|
413
|
|
12
|
|
|
|
|
|
|
|
13
|
20
|
|
|
20
|
|
13337
|
use DDC::PP::Constants; |
|
20
|
|
|
|
|
59
|
|
|
20
|
|
|
|
|
628
|
|
14
|
20
|
|
|
20
|
|
9377
|
use DDC::PP::Object; |
|
20
|
|
|
|
|
60
|
|
|
20
|
|
|
|
|
651
|
|
15
|
20
|
|
|
20
|
|
10069
|
use DDC::PP::CQuery; |
|
20
|
|
|
|
|
61
|
|
|
20
|
|
|
|
|
705
|
|
16
|
20
|
|
|
20
|
|
10376
|
use DDC::PP::CQCount; |
|
20
|
|
|
|
|
56
|
|
|
20
|
|
|
|
|
723
|
|
17
|
20
|
|
|
20
|
|
9519
|
use DDC::PP::CQFilter; |
|
20
|
|
|
|
|
64
|
|
|
20
|
|
|
|
|
780
|
|
18
|
20
|
|
|
20
|
|
9164
|
use DDC::PP::CQueryOptions; |
|
20
|
|
|
|
|
57
|
|
|
20
|
|
|
|
|
600
|
|
19
|
|
|
|
|
|
|
|
20
|
20
|
|
|
20
|
|
9659
|
use DDC::PP::CQueryCompiler; |
|
20
|
|
|
|
|
72
|
|
|
20
|
|
|
|
|
2705
|
|
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
|
104
|
50
|
|
104
|
0
|
47730
|
shift if (UNIVERSAL::isa($_[0],__PACKAGE__)); |
37
|
104
|
100
|
|
|
|
313
|
$COMPILER = DDC::PP::CQueryCompiler->new() if (!$COMPILER); |
38
|
104
|
|
|
|
|
308
|
return $COMPILER->ParseQuery(@_); |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; ##-- be happy |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
__END__ |