ClassFile/BNF/InterfacesArray.pm

filter: Statementstmt 78.9% 15 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 55.5% 5 / 9 Podpod n/a totaltotal 71.4% 20 / 28 SCAR 0.1
CC
1
Cov
79%
grammar
2.0
__ANON__
2.0
__ANON__
2.0
CRAP 1.0
« ClassFile/BNF/FormalParameterTarget.pm ↑ Summary ClassFile/BNF/OffsetTarget.pm »
1 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package MarpaX::Java::ClassFile::BNF::InterfacesArray;
5 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 # ABSTRACT: Parsing an array of interfaces
8  
9 our $VERSION = '0.008'; # VERSION
10  
11 our $AUTHORITY = 'cpan:JDDPAUSE'; # AUTHORITY
12  
13 1 ▶use Data::Section -setup;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use MarpaX::Java::ClassFile::Util::BNF qw/:all/;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 #
16 # require because we do not import ANYTHING from these module, just require they are loaded
17 #
18 require Marpa::R2;
19  
20 my $_data = ${ __PACKAGE__->section_data('bnf') };
21 my $_grammar = Marpa::R2::Scanless::G->new( { source => \__PACKAGE__->bnf($_data) } );
22  
23 # --------------------------------------------------
24 # What role MarpaX::Java::ClassFile::Common requires
25 # --------------------------------------------------
26 0 ▶sub grammar { $_grammar }
Subroutine grammar: not called CC=1 SCAR=6.9
27 sub callbacks {
28 return {
29 0 ▶ "'exhausted" => sub { $_[0]->exhausted },
Subroutine __ANON__: not called CC=1 SCAR=6.9
30 0 ▶ 'interface$' => sub { $_[0]->inc_nbDone }
Subroutine __ANON__: not called CC=1 SCAR=6.9
31 }
32 0 ▶}
Subroutine callbacks: not called CC=1 SCAR=6.9
33  
34 with qw/MarpaX::Java::ClassFile::Role::Parser::InnerGrammar/;
35  
36 1;
37  
38 =pod
39  
40 =encoding UTF-8
41  
42 =head1 NAME
43  
44 MarpaX::Java::ClassFile::BNF::InterfacesArray - Parsing an array of interfaces
45  
46 =head1 VERSION
47  
48 version 0.008
49  
50 =head1 AUTHOR
51  
52 Jean-Damien Durand <jeandamiendurand@free.fr>
53  
54 =head1 COPYRIGHT AND LICENSE
55  
56 This software is copyright (c) 2016 by Jean-Damien Durand.
57  
58 This is free software; you can redistribute it and/or modify it under
59 the same terms as the Perl 5 programming language system itself.
60  
61 =cut
62  
63 __DATA__
64 __[ bnf ]__
65 :default ::= action => [values]
66 event 'interface$' = completed interface
67  
68 interfacesArray ::= interface*
69 interface ::= U2 action => u2
« ClassFile/BNF/FormalParameterTarget.pm ↑ Summary ClassFile/BNF/OffsetTarget.pm »