| 1 | package Pegex::CSV; | ||
| 2 | 2 | our $VERSION = '0.0.4'; | |
| 3 | |||
| 4 | 2 | ▶ | use Pegex::Base; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 2 | ▶ | use Pegex::Parser; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 2 | ▶ | use Pegex::CSV::Grammar; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 2 | ▶ | use Pegex::CSV::LoL; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 2 | ▶ | use Encode; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 10 | ▶ | sub load { |
|
Subroutine
load: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 12 | 10 | my ($self, $csv) = @_; | |
| 13 | |||
| 14 | 10 | my $parser = Pegex::Parser->new( | |
| 15 | grammar => Pegex::CSV::Grammar->new, | ||
| 16 | receiver => Pegex::CSV::LoL->new, | ||
| 17 | # debug => 1, | ||
| 18 | ); | ||
| 19 | |||
| 20 | 10 | return $parser->parse(decode_utf8 $csv); | |
| 21 | } | ||
| 22 | |||
| 23 | 2 | 1; | |