Chess.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 96.4% 27 / 28 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Chess/Data.pm ↑ Summary Chess/Grammar.pm »
1 package Pegex::Chess;
2 1 our $VERSION = '0.0.8';
3  
4 1 ▶use Pegex::Base;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Pegex::Parser;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Pegex::Chess::Grammar;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use Pegex::Chess::Data;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use IO::All;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 ▶sub parse_chess_board_file {
Subroutine parse_chess_board_file: called CC=1 SCAR=0.0
Pod undocumented
11 1 my ($self, $chess_board_file, $debug) = @_;
12 1 my $input = io->file($chess_board_file)->all;
13 1 my $parser = Pegex::Parser->new(
14 grammar => Pegex::Chess::Grammar->new,
15 receiver => Pegex::Chess::Data->new,
16 debug => $debug,
17 );
18 1 return $parser->parse($input);
19 }
20  
21 1 1;
« Chess/Data.pm ↑ Summary Chess/Grammar.pm »