| 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
| |||||||||||
| 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; | |||||||||