line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
8
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
36
|
|
2
|
1
|
|
|
1
|
|
6
|
use warnings FATAL => 'all'; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
228
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package MarpaX::ESLIF::ECMA404::RecognizerInterface; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: MarpaX::ESLIF::ECMA404 Recognizer Interface |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.012'; # VERSION |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:JDDPAUSE'; # AUTHORITY |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
# ----------- |
15
|
|
|
|
|
|
|
# Constructor |
16
|
|
|
|
|
|
|
# ----------- |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub new { |
20
|
354
|
|
|
354
|
1
|
1368
|
my ($pkg, %options) = @_; |
21
|
354
|
|
|
|
|
1110
|
bless \%options, $pkg |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
# ---------------- |
25
|
|
|
|
|
|
|
# Required methods |
26
|
|
|
|
|
|
|
# ---------------- |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
354
|
|
|
354
|
1
|
1484
|
sub read { 1 } # First read callback will be ok |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
354
|
|
|
354
|
1
|
1119
|
sub isEof { 1 } # ../. and we will say this is EOF |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
354
|
|
|
354
|
1
|
3079104
|
sub isCharacterStream { 1 } # MarpaX::ESLIF will validate the input |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
38
|
354
|
|
|
354
|
1
|
1225
|
sub encoding { $_[0]->{encoding} } # Let MarpaX::ESLIF guess eventually |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
|
41
|
354
|
|
|
354
|
1
|
1417
|
sub data { $_[0]->{data} } # Data itself |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
|
44
|
354
|
|
|
354
|
1
|
1272
|
sub isWithDisableThreshold { 0 } # Disable threshold warning ? |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
|
47
|
354
|
|
|
354
|
1
|
1051
|
sub isWithExhaustion { 0 } # Exhaustion event ? |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
|
50
|
354
|
|
|
354
|
1
|
1007
|
sub isWithNewline { 0 } # Newline count ? |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
|
53
|
354
|
|
|
354
|
1
|
1021
|
sub isWithTrack { 0 } # Absolute position tracking ? |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
1; |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
__END__ |