line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Pegex::CSV::Grammar; |
2
|
2
|
|
|
2
|
|
10
|
use Pegex::Base; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
9
|
|
3
|
|
|
|
|
|
|
extends 'Pegex::Grammar'; |
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
2711
|
use constant file => 'share/csv.pgx'; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
533
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub make_tree { # Generated/Inlined by Pegex::Grammar (0.57) |
8
|
|
|
|
|
|
|
{ |
9
|
10
|
|
|
10
|
1
|
828
|
'+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
|
|
|
|
|
|
|
1; |