CSV/Grammar.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 100% 1 / 1 totaltotal 100% 13 / 13 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
make_tree
1.0
CRAP 1.0
« CSV.pm ↑ Summary
1 package Pegex::CSV::Grammar;
2 2 ▶use Pegex::Base;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 extends 'Pegex::Grammar';
4  
5 2 ▶use constant file => 'share/csv.pgx';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 10 ▶sub make_tree { # Generated/Inlined by Pegex::Grammar (0.57)
Subroutine make_tree: called CC=1 SCAR=0.0
Pod documented
8 {
9 10 '+toprule' => 'csv',
10 'csv' => {
11 '+min' => 0,
12 '.ref' => 'row'
13 },
14 'row' => {
15 '.all' => [
16 {
17 '.rgx' => qr/\G(?=[\s\S])/
18 },
19 {
20 '+max' => 1,
21 '.all' => [
22 {
23 '.ref' => 'value'
24 },
25 {
26 '+min' => 0,
27 '-flat' => 1,
28 '.all' => [
29 {
30 '.rgx' => qr/\G[\ \t]*,/
31 },
32 {
33 '.ref' => 'value'
34 }
35 ]
36 }
37 ]
38 },
39 {
40 '.rgx' => qr/\G[\ \t]*(?:\r?\n|\r|\z)/
41 }
42 ]
43 },
44 'value' => {
45 '.rgx' => qr/\G[\ \t]*([\ \t]*"(?:(?:""|[^"])*)"|[\ \t]*(?:[^,"\r\n]*[^\ \t,"\r\n])?)/
46 }
47 }
48 }
49  
50 2 1;
« CSV.pm ↑ Summary