| 1 | package Pegex::Module; | ||||||||||
| 2 | 1 | ▶ | use Pegex::Base; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | 1 | has parser_class => 'Pegex::Parser', lazy => 0; | |||||||||
| 5 | has grammar_class => ( | ||||||||||
| 6 | 0 | ▶ | default => sub { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 7 | 0 | my $class = ref($_[0]); | |||||||||
| 8 | 0 | die "$class needs a 'grammar_class' property"; | |||||||||
| 9 | }, | ||||||||||
| 10 | 1 | ); | |||||||||
| 11 | 1 | has receiver_class => 'Pegex::Tree'; | |||||||||
| 12 | |||||||||||
| 13 | 0 | ▶ | sub parse { | ||||||||
|
Subroutine
parse: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 14 | 0 | my ($self, $input) = @_; | |||||||||
| 15 | 0 | ▶ | $self = $self->new unless ref $self; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 16 | # use XXX; XXX $self; | ||||||||||
| 17 | 0 | my $parser = $self->parser_class->new( | |||||||||
| 18 | grammar => $self->grammar_class->new, | ||||||||||
| 19 | receiver => $self->receiver_class->new, | ||||||||||
| 20 | ); | ||||||||||
| 21 | 0 | $parser->parse($input); | |||||||||
| 22 | } | ||||||||||
| 23 | |||||||||||
| 24 | 1 | 1; | |||||||||