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
|
|
786147
|
use DDC::Concordance; |
|
20
|
|
|
|
|
55
|
|
|
20
|
|
|
|
|
561
|
|
11
|
20
|
|
|
20
|
|
96
|
use strict; |
|
20
|
|
|
|
|
41
|
|
|
20
|
|
|
|
|
404
|
|
12
|
|
|
|
|
|
|
|
13
|
20
|
|
|
20
|
|
12087
|
use DDC::PP::Constants; |
|
20
|
|
|
|
|
48
|
|
|
20
|
|
|
|
|
670
|
|
14
|
20
|
|
|
20
|
|
8525
|
use DDC::PP::Object; |
|
20
|
|
|
|
|
55
|
|
|
20
|
|
|
|
|
558
|
|
15
|
20
|
|
|
20
|
|
8936
|
use DDC::PP::CQuery; |
|
20
|
|
|
|
|
57
|
|
|
20
|
|
|
|
|
628
|
|
16
|
20
|
|
|
20
|
|
8590
|
use DDC::PP::CQCount; |
|
20
|
|
|
|
|
53
|
|
|
20
|
|
|
|
|
680
|
|
17
|
20
|
|
|
20
|
|
8296
|
use DDC::PP::CQFilter; |
|
20
|
|
|
|
|
54
|
|
|
20
|
|
|
|
|
687
|
|
18
|
20
|
|
|
20
|
|
8108
|
use DDC::PP::CQueryOptions; |
|
20
|
|
|
|
|
64
|
|
|
20
|
|
|
|
|
594
|
|
19
|
|
|
|
|
|
|
|
20
|
20
|
|
|
20
|
|
8396
|
use DDC::PP::CQueryCompiler; |
|
20
|
|
|
|
|
67
|
|
|
20
|
|
|
|
|
2528
|
|
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
|
35059
|
shift if (UNIVERSAL::isa($_[0],__PACKAGE__)); |
37
|
98
|
100
|
|
|
|
257
|
$COMPILER = DDC::PP::CQueryCompiler->new() if (!$COMPILER); |
38
|
98
|
|
|
|
|
256
|
return $COMPILER->ParseQuery(@_); |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; ##-- be happy |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
__END__ |