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