blib/lib/Inline/C/Parser/Pegex.pm

filter: Statementstmt 69.5% 16 / 23 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 62.5% 5 / 8 Podpod 0.0% 0 / 3 totaltotal 58.3% 21 / 36 CC 2 SCAR 8.5
CC
2
Cov
64%
get_parser
6.0
register
2.0
code
2.0
CRAP 2.3
« blib/lib/Inline/C/Parser/RecDescent.pm ↑ Summary blib/lib/Inline/C/Parser/Pegex/AST.pm »
1 1 ▶use strict; use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Inline::C::Parser::Pegex;
3  
4 1 ▶use Pegex::Parser;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Inline::C::Parser::Pegex::Grammar;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Inline::C::Parser::Pegex::AST;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 0 ▶sub register {
Subroutine register: not called CC=1 SCAR=6.9
Pod undocumented
9 {
10 0 extends => [qw(C)],
11 overrides => [qw(get_parser)],
12 }
13 }
14  
15 0 ▶sub get_parser {
Subroutine get_parser: not called CC=2 SCAR=17.9
Pod undocumented
16 0 my $o = shift;
17 0 ▶ Inline::C::_parser_test($o->{CONFIG}{DIRECTORY}, "Inline::C::Parser::Pegex::get_parser called\n") if $o->{CONFIG}{_TESTING};
Branch: 1 branch
BranchTrueFalseTotal
if $o->{"CONFIG"}{"_TESTING"} 0 0 0
18 0 bless {}, 'Inline::C::Parser::Pegex'
19 }
20  
21 0 ▶sub code {
Subroutine code: not called CC=1 SCAR=6.9
Pod undocumented
22 0 my($self,$code) = @_;
23  
24 $main::data = $self->{data} =
25 0 Pegex::Parser->new(
26 grammar => Inline::C::Parser::Pegex::Grammar->new,
27 receiver => Inline::C::Parser::Pegex::AST->new,
28 # debug => 1,
29 )->parse($code);
30  
31 0 return 1;
32 }
33  
34 1 1;
« blib/lib/Inline/C/Parser/RecDescent.pm ↑ Summary blib/lib/Inline/C/Parser/Pegex/AST.pm »