regexp_parser 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +27 -1
- data/Gemfile +1 -1
- data/README.md +9 -13
- data/lib/regexp_parser/expression.rb +33 -21
- data/lib/regexp_parser/expression/classes/backref.rb +18 -10
- data/lib/regexp_parser/expression/classes/conditional.rb +4 -0
- data/lib/regexp_parser/expression/classes/group.rb +4 -2
- data/lib/regexp_parser/expression/classes/keep.rb +1 -3
- data/lib/regexp_parser/expression/methods/match_length.rb +172 -0
- data/lib/regexp_parser/expression/quantifier.rb +2 -2
- data/lib/regexp_parser/expression/sequence.rb +0 -4
- data/lib/regexp_parser/expression/subexpression.rb +3 -5
- data/lib/regexp_parser/lexer.rb +31 -24
- data/lib/regexp_parser/parser.rb +25 -3
- data/lib/regexp_parser/syntax/tokens.rb +2 -10
- data/lib/regexp_parser/version.rb +1 -1
- data/regexp_parser.gemspec +2 -2
- data/spec/expression/base_spec.rb +80 -0
- data/spec/expression/clone_spec.rb +120 -0
- data/spec/expression/conditional_spec.rb +89 -0
- data/spec/expression/free_space_spec.rb +27 -0
- data/spec/expression/methods/match_length_spec.rb +141 -0
- data/spec/expression/methods/strfregexp_spec.rb +224 -0
- data/spec/expression/methods/tests_spec.rb +97 -0
- data/spec/expression/methods/traverse_spec.rb +140 -0
- data/spec/expression/subexpression_spec.rb +50 -0
- data/spec/expression/to_h_spec.rb +26 -0
- data/spec/expression/to_s_spec.rb +100 -0
- data/spec/lexer/all_spec.rb +22 -0
- data/{test/lexer/test_conditionals.rb → spec/lexer/conditionals_spec.rb} +31 -35
- data/spec/lexer/escapes_spec.rb +38 -0
- data/spec/lexer/keep_spec.rb +22 -0
- data/{test/lexer/test_literals.rb → spec/lexer/literals_spec.rb} +20 -24
- data/{test/lexer/test_nesting.rb → spec/lexer/nesting_spec.rb} +11 -13
- data/spec/lexer/refcalls_spec.rb +54 -0
- data/spec/parser/all_spec.rb +31 -0
- data/spec/parser/alternation_spec.rb +88 -0
- data/{test/parser/test_anchors.rb → spec/parser/anchors_spec.rb} +7 -10
- data/spec/parser/conditionals_spec.rb +179 -0
- data/spec/parser/errors_spec.rb +51 -0
- data/spec/parser/escapes_spec.rb +132 -0
- data/spec/parser/free_space_spec.rb +130 -0
- data/spec/parser/groups_spec.rb +267 -0
- data/spec/parser/keep_spec.rb +19 -0
- data/spec/parser/posix_classes_spec.rb +27 -0
- data/spec/parser/properties_spec.rb +127 -0
- data/spec/parser/quantifiers_spec.rb +293 -0
- data/spec/parser/refcalls_spec.rb +237 -0
- data/spec/parser/set/intersections_spec.rb +127 -0
- data/spec/parser/set/ranges_spec.rb +111 -0
- data/spec/parser/sets_spec.rb +178 -0
- data/{test/parser/test_types.rb → spec/parser/types_spec.rb} +13 -20
- data/spec/scanner/all_spec.rb +18 -0
- data/{test/scanner/test_anchors.rb → spec/scanner/anchors_spec.rb} +8 -10
- data/{test/scanner/test_conditionals.rb → spec/scanner/conditionals_spec.rb} +49 -53
- data/spec/scanner/errors_spec.rb +90 -0
- data/{test/scanner/test_escapes.rb → spec/scanner/escapes_spec.rb} +8 -10
- data/{test/scanner/test_free_space.rb → spec/scanner/free_space_spec.rb} +48 -52
- data/{test/scanner/test_groups.rb → spec/scanner/groups_spec.rb} +33 -41
- data/spec/scanner/keep_spec.rb +33 -0
- data/{test/scanner/test_literals.rb → spec/scanner/literals_spec.rb} +8 -12
- data/{test/scanner/test_meta.rb → spec/scanner/meta_spec.rb} +8 -10
- data/{test/scanner/test_properties.rb → spec/scanner/properties_spec.rb} +14 -19
- data/{test/scanner/test_quantifiers.rb → spec/scanner/quantifiers_spec.rb} +7 -9
- data/{test/scanner/test_refcalls.rb → spec/scanner/refcalls_spec.rb} +9 -9
- data/{test/scanner/test_scripts.rb → spec/scanner/scripts_spec.rb} +8 -12
- data/{test/scanner/test_sets.rb → spec/scanner/sets_spec.rb} +14 -17
- data/spec/scanner/types_spec.rb +29 -0
- data/spec/scanner/unicode_blocks_spec.rb +28 -0
- data/spec/spec_helper.rb +14 -0
- data/{test → spec}/support/runner.rb +9 -8
- data/{test → spec}/support/warning_extractor.rb +5 -7
- data/spec/syntax/syntax_spec.rb +44 -0
- data/spec/syntax/syntax_token_map_spec.rb +23 -0
- data/spec/syntax/versions/1.8.6_spec.rb +38 -0
- data/spec/syntax/versions/1.9.1_spec.rb +23 -0
- data/spec/syntax/versions/1.9.3_spec.rb +22 -0
- data/spec/syntax/versions/2.0.0_spec.rb +28 -0
- data/spec/syntax/versions/2.2.0_spec.rb +22 -0
- data/spec/syntax/versions/aliases_spec.rb +119 -0
- data/spec/token/token_spec.rb +85 -0
- metadata +131 -140
- data/test/expression/test_all.rb +0 -12
- data/test/expression/test_base.rb +0 -90
- data/test/expression/test_clone.rb +0 -89
- data/test/expression/test_conditionals.rb +0 -113
- data/test/expression/test_free_space.rb +0 -35
- data/test/expression/test_set.rb +0 -84
- data/test/expression/test_strfregexp.rb +0 -230
- data/test/expression/test_subexpression.rb +0 -58
- data/test/expression/test_tests.rb +0 -99
- data/test/expression/test_to_h.rb +0 -59
- data/test/expression/test_to_s.rb +0 -104
- data/test/expression/test_traverse.rb +0 -161
- data/test/helpers.rb +0 -10
- data/test/lexer/test_all.rb +0 -41
- data/test/lexer/test_keep.rb +0 -24
- data/test/lexer/test_refcalls.rb +0 -56
- data/test/parser/set/test_intersections.rb +0 -127
- data/test/parser/set/test_ranges.rb +0 -111
- data/test/parser/test_all.rb +0 -64
- data/test/parser/test_alternation.rb +0 -92
- data/test/parser/test_conditionals.rb +0 -187
- data/test/parser/test_errors.rb +0 -63
- data/test/parser/test_escapes.rb +0 -134
- data/test/parser/test_free_space.rb +0 -139
- data/test/parser/test_groups.rb +0 -289
- data/test/parser/test_keep.rb +0 -21
- data/test/parser/test_posix_classes.rb +0 -27
- data/test/parser/test_properties.rb +0 -134
- data/test/parser/test_quantifiers.rb +0 -301
- data/test/parser/test_refcalls.rb +0 -186
- data/test/parser/test_sets.rb +0 -179
- data/test/scanner/test_all.rb +0 -38
- data/test/scanner/test_errors.rb +0 -91
- data/test/scanner/test_keep.rb +0 -35
- data/test/scanner/test_types.rb +0 -35
- data/test/scanner/test_unicode_blocks.rb +0 -30
- data/test/support/disable_autotest.rb +0 -8
- data/test/syntax/test_all.rb +0 -6
- data/test/syntax/test_syntax.rb +0 -61
- data/test/syntax/test_syntax_token_map.rb +0 -25
- data/test/syntax/versions/test_1.8.rb +0 -55
- data/test/syntax/versions/test_1.9.1.rb +0 -36
- data/test/syntax/versions/test_1.9.3.rb +0 -32
- data/test/syntax/versions/test_2.0.0.rb +0 -37
- data/test/syntax/versions/test_2.2.0.rb +0 -32
- data/test/syntax/versions/test_aliases.rb +0 -129
- data/test/syntax/versions/test_all.rb +0 -5
- data/test/test_all.rb +0 -5
- data/test/token/test_all.rb +0 -2
- data/test/token/test_token.rb +0 -107
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe(Regexp::Syntax::V2_0_0) do
|
4
|
+
let(:syntax) { Regexp::Syntax.new('ruby/2.0.0') }
|
5
|
+
|
6
|
+
tests = {
|
7
|
+
implements: {
|
8
|
+
property: T::UnicodeProperty::Age_V2_0_0,
|
9
|
+
nonproperty: T::UnicodeProperty::Age_V2_0_0
|
10
|
+
},
|
11
|
+
excludes: {
|
12
|
+
property: [:newline],
|
13
|
+
nonproperty: [:newline]
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
tests.each do |method, types|
|
18
|
+
expected = method != :excludes
|
19
|
+
|
20
|
+
types.each do |type, tokens|
|
21
|
+
tokens.each do |token|
|
22
|
+
specify("syntax_ruby_V2_0_0_#{method}_#{type}_#{token}") do
|
23
|
+
expect(syntax.implements?(type, token)).to eq expected
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe(Regexp::Syntax::V2_2_0) do
|
4
|
+
let(:syntax) { Regexp::Syntax.new('ruby/2.2.0') }
|
5
|
+
|
6
|
+
tests = {
|
7
|
+
implements: {
|
8
|
+
property: T::UnicodeProperty::Script_V2_2_0 + T::UnicodeProperty::Age_V2_2_0,
|
9
|
+
nonproperty: T::UnicodeProperty::Script_V2_2_0 + T::UnicodeProperty::Age_V2_2_0
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
tests.each do |method, types|
|
14
|
+
types.each do |type, tokens|
|
15
|
+
tokens.each do |token|
|
16
|
+
specify("syntax_V2_2_0_#{method}_#{type}_#{token}") do
|
17
|
+
expect(syntax.implements?(type, token)).to be true
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,119 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe(Regexp::Syntax) do
|
4
|
+
specify('syntax alias 1 8 6') do
|
5
|
+
syntax = Regexp::Syntax.new('ruby/1.8.6')
|
6
|
+
|
7
|
+
expect(syntax).to be_a(Regexp::Syntax::V1_8_6)
|
8
|
+
end
|
9
|
+
|
10
|
+
specify('syntax alias 1 8 alias') do
|
11
|
+
syntax = Regexp::Syntax.new('ruby/1.8')
|
12
|
+
|
13
|
+
expect(syntax).to be_a(Regexp::Syntax::V1_8_6)
|
14
|
+
end
|
15
|
+
|
16
|
+
specify('syntax alias 1 9 1') do
|
17
|
+
syntax = Regexp::Syntax.new('ruby/1.9.1')
|
18
|
+
|
19
|
+
expect(syntax).to be_a(Regexp::Syntax::V1_9_1)
|
20
|
+
end
|
21
|
+
|
22
|
+
specify('syntax alias 1 9 alias') do
|
23
|
+
syntax = Regexp::Syntax.new('ruby/1.9')
|
24
|
+
|
25
|
+
expect(syntax).to be_a(Regexp::Syntax::V1_9_3)
|
26
|
+
end
|
27
|
+
|
28
|
+
specify('syntax alias 2 0 0') do
|
29
|
+
syntax = Regexp::Syntax.new('ruby/2.0.0')
|
30
|
+
|
31
|
+
expect(syntax).to be_a(Regexp::Syntax::V1_9)
|
32
|
+
end
|
33
|
+
|
34
|
+
specify('syntax alias 2 0 alias') do
|
35
|
+
syntax = Regexp::Syntax.new('ruby/2.0')
|
36
|
+
|
37
|
+
expect(syntax).to be_a(Regexp::Syntax::V2_0_0)
|
38
|
+
end
|
39
|
+
|
40
|
+
specify('syntax alias 2 1 alias') do
|
41
|
+
syntax = Regexp::Syntax.new('ruby/2.1')
|
42
|
+
|
43
|
+
expect(syntax).to be_a(Regexp::Syntax::V2_0_0)
|
44
|
+
end
|
45
|
+
|
46
|
+
specify('syntax alias 2 2 0') do
|
47
|
+
syntax = Regexp::Syntax.new('ruby/2.2.0')
|
48
|
+
|
49
|
+
expect(syntax).to be_a(Regexp::Syntax::V2_0_0)
|
50
|
+
end
|
51
|
+
|
52
|
+
specify('syntax alias 2 2 10') do
|
53
|
+
syntax = Regexp::Syntax.new('ruby/2.2.10')
|
54
|
+
|
55
|
+
expect(syntax).to be_a(Regexp::Syntax::V2_0_0)
|
56
|
+
end
|
57
|
+
|
58
|
+
specify('syntax alias 2 2 alias') do
|
59
|
+
syntax = Regexp::Syntax.new('ruby/2.2')
|
60
|
+
|
61
|
+
expect(syntax).to be_a(Regexp::Syntax::V2_0_0)
|
62
|
+
end
|
63
|
+
|
64
|
+
specify('syntax alias 2 3 0') do
|
65
|
+
syntax = Regexp::Syntax.new('ruby/2.3.0')
|
66
|
+
|
67
|
+
expect(syntax).to be_a(Regexp::Syntax::V2_3_0)
|
68
|
+
end
|
69
|
+
|
70
|
+
specify('syntax alias 2 3') do
|
71
|
+
syntax = Regexp::Syntax.new('ruby/2.3')
|
72
|
+
|
73
|
+
expect(syntax).to be_a(Regexp::Syntax::V2_3_0)
|
74
|
+
end
|
75
|
+
|
76
|
+
specify('syntax alias 2 4 0') do
|
77
|
+
syntax = Regexp::Syntax.new('ruby/2.4.0')
|
78
|
+
|
79
|
+
expect(syntax).to be_a(Regexp::Syntax::V2_4_0)
|
80
|
+
end
|
81
|
+
|
82
|
+
specify('syntax alias 2 4 1') do
|
83
|
+
syntax = Regexp::Syntax.new('ruby/2.4.1')
|
84
|
+
|
85
|
+
expect(syntax).to be_a(Regexp::Syntax::V2_4_1)
|
86
|
+
end
|
87
|
+
|
88
|
+
specify('syntax alias 2 5 0') do
|
89
|
+
syntax = Regexp::Syntax.new('ruby/2.5.0')
|
90
|
+
|
91
|
+
expect(syntax).to be_a(Regexp::Syntax::V2_4_1)
|
92
|
+
expect(syntax).to be_a(Regexp::Syntax::V2_5_0)
|
93
|
+
end
|
94
|
+
|
95
|
+
specify('syntax alias 2 5') do
|
96
|
+
syntax = Regexp::Syntax.new('ruby/2.5')
|
97
|
+
|
98
|
+
expect(syntax).to be_a(Regexp::Syntax::V2_5_0)
|
99
|
+
end
|
100
|
+
|
101
|
+
specify('syntax alias 2 6 0') do
|
102
|
+
syntax = Regexp::Syntax.new('ruby/2.6.0')
|
103
|
+
|
104
|
+
expect(syntax).to be_a(Regexp::Syntax::V2_5_0)
|
105
|
+
expect(syntax).to be_a(Regexp::Syntax::V2_6_0)
|
106
|
+
end
|
107
|
+
|
108
|
+
specify('syntax alias 2 6') do
|
109
|
+
syntax = Regexp::Syntax.new('ruby/2.6')
|
110
|
+
|
111
|
+
expect(syntax).to be_a(Regexp::Syntax::V2_5_0)
|
112
|
+
end
|
113
|
+
|
114
|
+
specify('future alias warning') do
|
115
|
+
expect { Regexp::Syntax.new('ruby/5.0') }
|
116
|
+
.to output(/This library .* but you are running .* \(feature set of .*\)/)
|
117
|
+
.to_stderr
|
118
|
+
end
|
119
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe(Regexp::Token) do
|
4
|
+
specify('#offset') do
|
5
|
+
regexp = /ab?cd/
|
6
|
+
tokens = RL.lex(regexp)
|
7
|
+
|
8
|
+
expect(tokens[1].text).to eq 'b'
|
9
|
+
expect(tokens[1].offset).to eq [1, 2]
|
10
|
+
|
11
|
+
expect(tokens[2].text).to eq '?'
|
12
|
+
expect(tokens[2].offset).to eq [2, 3]
|
13
|
+
|
14
|
+
expect(tokens[3].text).to eq 'cd'
|
15
|
+
expect(tokens[3].offset).to eq [3, 5]
|
16
|
+
end
|
17
|
+
|
18
|
+
specify('#length') do
|
19
|
+
regexp = /abc?def/
|
20
|
+
tokens = RL.lex(regexp)
|
21
|
+
|
22
|
+
expect(tokens[0].text).to eq 'ab'
|
23
|
+
expect(tokens[0].length).to eq 2
|
24
|
+
|
25
|
+
expect(tokens[1].text).to eq 'c'
|
26
|
+
expect(tokens[1].length).to eq 1
|
27
|
+
|
28
|
+
expect(tokens[2].text).to eq '?'
|
29
|
+
expect(tokens[2].length).to eq 1
|
30
|
+
|
31
|
+
expect(tokens[3].text).to eq 'def'
|
32
|
+
expect(tokens[3].length).to eq 3
|
33
|
+
end
|
34
|
+
|
35
|
+
specify('#to_h') do
|
36
|
+
regexp = /abc?def/
|
37
|
+
tokens = RL.lex(regexp)
|
38
|
+
|
39
|
+
expect(tokens[0].text).to eq 'ab'
|
40
|
+
expect(tokens[0].to_h).to eq type: :literal, token: :literal, text: 'ab', ts: 0, te: 2, level: 0, set_level: 0, conditional_level: 0
|
41
|
+
|
42
|
+
expect(tokens[2].text).to eq '?'
|
43
|
+
expect(tokens[2].to_h).to eq type: :quantifier, token: :zero_or_one, text: '?', ts: 3, te: 4, level: 0, set_level: 0, conditional_level: 0
|
44
|
+
end
|
45
|
+
|
46
|
+
specify('#next') do
|
47
|
+
regexp = /a+b?c*d{2,3}/
|
48
|
+
tokens = RL.lex(regexp)
|
49
|
+
|
50
|
+
a = tokens.first
|
51
|
+
expect(a.text).to eq 'a'
|
52
|
+
|
53
|
+
plus = a.next
|
54
|
+
expect(plus.text).to eq '+'
|
55
|
+
|
56
|
+
b = plus.next
|
57
|
+
expect(b.text).to eq 'b'
|
58
|
+
|
59
|
+
interval = tokens.last
|
60
|
+
expect(interval.text).to eq '{2,3}'
|
61
|
+
|
62
|
+
expect(interval.next).to be_nil
|
63
|
+
end
|
64
|
+
|
65
|
+
specify('#previous') do
|
66
|
+
regexp = /a+b?c*d{2,3}/
|
67
|
+
tokens = RL.lex(regexp)
|
68
|
+
|
69
|
+
interval = tokens.last
|
70
|
+
expect(interval.text).to eq '{2,3}'
|
71
|
+
|
72
|
+
d = interval.previous
|
73
|
+
expect(d.text).to eq 'd'
|
74
|
+
|
75
|
+
star = d.previous
|
76
|
+
expect(star.text).to eq '*'
|
77
|
+
|
78
|
+
c = star.previous
|
79
|
+
expect(c.text).to eq 'c'
|
80
|
+
|
81
|
+
a = tokens.first
|
82
|
+
expect(a.text).to eq 'a'
|
83
|
+
expect(a.previous).to be_nil
|
84
|
+
end
|
85
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: regexp_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ammar Ali
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A library for tokenizing, lexing, and parsing Ruby regular expressions.
|
14
14
|
email:
|
@@ -40,6 +40,7 @@ files:
|
|
40
40
|
- lib/regexp_parser/expression/classes/set/intersection.rb
|
41
41
|
- lib/regexp_parser/expression/classes/set/range.rb
|
42
42
|
- lib/regexp_parser/expression/classes/type.rb
|
43
|
+
- lib/regexp_parser/expression/methods/match_length.rb
|
43
44
|
- lib/regexp_parser/expression/methods/strfregexp.rb
|
44
45
|
- lib/regexp_parser/expression/methods/tests.rb
|
45
46
|
- lib/regexp_parser/expression/methods/traverse.rb
|
@@ -87,75 +88,70 @@ files:
|
|
87
88
|
- lib/regexp_parser/token.rb
|
88
89
|
- lib/regexp_parser/version.rb
|
89
90
|
- regexp_parser.gemspec
|
90
|
-
-
|
91
|
-
-
|
92
|
-
-
|
93
|
-
-
|
94
|
-
-
|
95
|
-
-
|
96
|
-
-
|
97
|
-
-
|
98
|
-
-
|
99
|
-
-
|
100
|
-
-
|
101
|
-
-
|
102
|
-
-
|
103
|
-
-
|
104
|
-
-
|
105
|
-
-
|
106
|
-
-
|
107
|
-
-
|
108
|
-
-
|
109
|
-
-
|
110
|
-
-
|
111
|
-
-
|
112
|
-
-
|
113
|
-
-
|
114
|
-
-
|
115
|
-
-
|
116
|
-
-
|
117
|
-
-
|
118
|
-
-
|
119
|
-
-
|
120
|
-
-
|
121
|
-
-
|
122
|
-
-
|
123
|
-
-
|
124
|
-
-
|
125
|
-
-
|
126
|
-
-
|
127
|
-
-
|
128
|
-
-
|
129
|
-
-
|
130
|
-
-
|
131
|
-
-
|
132
|
-
-
|
133
|
-
-
|
134
|
-
-
|
135
|
-
-
|
136
|
-
-
|
137
|
-
-
|
138
|
-
-
|
139
|
-
-
|
140
|
-
-
|
141
|
-
-
|
142
|
-
-
|
143
|
-
-
|
144
|
-
-
|
145
|
-
-
|
146
|
-
-
|
147
|
-
-
|
148
|
-
-
|
149
|
-
-
|
150
|
-
-
|
151
|
-
-
|
152
|
-
-
|
153
|
-
-
|
154
|
-
- test/syntax/versions/test_aliases.rb
|
155
|
-
- test/syntax/versions/test_all.rb
|
156
|
-
- test/test_all.rb
|
157
|
-
- test/token/test_all.rb
|
158
|
-
- test/token/test_token.rb
|
91
|
+
- spec/expression/base_spec.rb
|
92
|
+
- spec/expression/clone_spec.rb
|
93
|
+
- spec/expression/conditional_spec.rb
|
94
|
+
- spec/expression/free_space_spec.rb
|
95
|
+
- spec/expression/methods/match_length_spec.rb
|
96
|
+
- spec/expression/methods/strfregexp_spec.rb
|
97
|
+
- spec/expression/methods/tests_spec.rb
|
98
|
+
- spec/expression/methods/traverse_spec.rb
|
99
|
+
- spec/expression/subexpression_spec.rb
|
100
|
+
- spec/expression/to_h_spec.rb
|
101
|
+
- spec/expression/to_s_spec.rb
|
102
|
+
- spec/lexer/all_spec.rb
|
103
|
+
- spec/lexer/conditionals_spec.rb
|
104
|
+
- spec/lexer/escapes_spec.rb
|
105
|
+
- spec/lexer/keep_spec.rb
|
106
|
+
- spec/lexer/literals_spec.rb
|
107
|
+
- spec/lexer/nesting_spec.rb
|
108
|
+
- spec/lexer/refcalls_spec.rb
|
109
|
+
- spec/parser/all_spec.rb
|
110
|
+
- spec/parser/alternation_spec.rb
|
111
|
+
- spec/parser/anchors_spec.rb
|
112
|
+
- spec/parser/conditionals_spec.rb
|
113
|
+
- spec/parser/errors_spec.rb
|
114
|
+
- spec/parser/escapes_spec.rb
|
115
|
+
- spec/parser/free_space_spec.rb
|
116
|
+
- spec/parser/groups_spec.rb
|
117
|
+
- spec/parser/keep_spec.rb
|
118
|
+
- spec/parser/posix_classes_spec.rb
|
119
|
+
- spec/parser/properties_spec.rb
|
120
|
+
- spec/parser/quantifiers_spec.rb
|
121
|
+
- spec/parser/refcalls_spec.rb
|
122
|
+
- spec/parser/set/intersections_spec.rb
|
123
|
+
- spec/parser/set/ranges_spec.rb
|
124
|
+
- spec/parser/sets_spec.rb
|
125
|
+
- spec/parser/types_spec.rb
|
126
|
+
- spec/scanner/all_spec.rb
|
127
|
+
- spec/scanner/anchors_spec.rb
|
128
|
+
- spec/scanner/conditionals_spec.rb
|
129
|
+
- spec/scanner/errors_spec.rb
|
130
|
+
- spec/scanner/escapes_spec.rb
|
131
|
+
- spec/scanner/free_space_spec.rb
|
132
|
+
- spec/scanner/groups_spec.rb
|
133
|
+
- spec/scanner/keep_spec.rb
|
134
|
+
- spec/scanner/literals_spec.rb
|
135
|
+
- spec/scanner/meta_spec.rb
|
136
|
+
- spec/scanner/properties_spec.rb
|
137
|
+
- spec/scanner/quantifiers_spec.rb
|
138
|
+
- spec/scanner/refcalls_spec.rb
|
139
|
+
- spec/scanner/scripts_spec.rb
|
140
|
+
- spec/scanner/sets_spec.rb
|
141
|
+
- spec/scanner/types_spec.rb
|
142
|
+
- spec/scanner/unicode_blocks_spec.rb
|
143
|
+
- spec/spec_helper.rb
|
144
|
+
- spec/support/runner.rb
|
145
|
+
- spec/support/warning_extractor.rb
|
146
|
+
- spec/syntax/syntax_spec.rb
|
147
|
+
- spec/syntax/syntax_token_map_spec.rb
|
148
|
+
- spec/syntax/versions/1.8.6_spec.rb
|
149
|
+
- spec/syntax/versions/1.9.1_spec.rb
|
150
|
+
- spec/syntax/versions/1.9.3_spec.rb
|
151
|
+
- spec/syntax/versions/2.0.0_spec.rb
|
152
|
+
- spec/syntax/versions/2.2.0_spec.rb
|
153
|
+
- spec/syntax/versions/aliases_spec.rb
|
154
|
+
- spec/token/token_spec.rb
|
159
155
|
homepage: https://github.com/ammar/regexp_parser
|
160
156
|
licenses:
|
161
157
|
- MIT
|
@@ -183,72 +179,67 @@ signing_key:
|
|
183
179
|
specification_version: 4
|
184
180
|
summary: Scanner, lexer, parser for ruby's regular expressions
|
185
181
|
test_files:
|
186
|
-
-
|
187
|
-
-
|
188
|
-
-
|
189
|
-
-
|
190
|
-
-
|
191
|
-
-
|
192
|
-
-
|
193
|
-
-
|
194
|
-
-
|
195
|
-
-
|
196
|
-
-
|
197
|
-
-
|
198
|
-
-
|
199
|
-
-
|
200
|
-
-
|
201
|
-
-
|
202
|
-
-
|
203
|
-
-
|
204
|
-
-
|
205
|
-
-
|
206
|
-
-
|
207
|
-
-
|
208
|
-
-
|
209
|
-
-
|
210
|
-
-
|
211
|
-
-
|
212
|
-
-
|
213
|
-
-
|
214
|
-
-
|
215
|
-
-
|
216
|
-
-
|
217
|
-
-
|
218
|
-
-
|
219
|
-
-
|
220
|
-
-
|
221
|
-
-
|
222
|
-
-
|
223
|
-
-
|
224
|
-
-
|
225
|
-
-
|
226
|
-
-
|
227
|
-
-
|
228
|
-
-
|
229
|
-
-
|
230
|
-
-
|
231
|
-
-
|
232
|
-
-
|
233
|
-
-
|
234
|
-
-
|
235
|
-
-
|
236
|
-
-
|
237
|
-
-
|
238
|
-
-
|
239
|
-
-
|
240
|
-
-
|
241
|
-
-
|
242
|
-
-
|
243
|
-
-
|
244
|
-
-
|
245
|
-
-
|
246
|
-
-
|
247
|
-
-
|
248
|
-
-
|
249
|
-
-
|
250
|
-
- test/scanner/test_conditionals.rb
|
251
|
-
- test/scanner/test_errors.rb
|
252
|
-
- test/scanner/test_refcalls.rb
|
253
|
-
- test/scanner/test_literals.rb
|
254
|
-
- test/scanner/test_all.rb
|
182
|
+
- spec/token/token_spec.rb
|
183
|
+
- spec/spec_helper.rb
|
184
|
+
- spec/lexer/escapes_spec.rb
|
185
|
+
- spec/lexer/keep_spec.rb
|
186
|
+
- spec/lexer/all_spec.rb
|
187
|
+
- spec/lexer/conditionals_spec.rb
|
188
|
+
- spec/lexer/nesting_spec.rb
|
189
|
+
- spec/lexer/refcalls_spec.rb
|
190
|
+
- spec/lexer/literals_spec.rb
|
191
|
+
- spec/parser/escapes_spec.rb
|
192
|
+
- spec/parser/properties_spec.rb
|
193
|
+
- spec/parser/sets_spec.rb
|
194
|
+
- spec/parser/free_space_spec.rb
|
195
|
+
- spec/parser/keep_spec.rb
|
196
|
+
- spec/parser/all_spec.rb
|
197
|
+
- spec/parser/conditionals_spec.rb
|
198
|
+
- spec/parser/types_spec.rb
|
199
|
+
- spec/parser/anchors_spec.rb
|
200
|
+
- spec/parser/alternation_spec.rb
|
201
|
+
- spec/parser/posix_classes_spec.rb
|
202
|
+
- spec/parser/set/ranges_spec.rb
|
203
|
+
- spec/parser/set/intersections_spec.rb
|
204
|
+
- spec/parser/errors_spec.rb
|
205
|
+
- spec/parser/refcalls_spec.rb
|
206
|
+
- spec/parser/groups_spec.rb
|
207
|
+
- spec/parser/quantifiers_spec.rb
|
208
|
+
- spec/support/warning_extractor.rb
|
209
|
+
- spec/support/runner.rb
|
210
|
+
- spec/expression/subexpression_spec.rb
|
211
|
+
- spec/expression/methods/match_length_spec.rb
|
212
|
+
- spec/expression/methods/traverse_spec.rb
|
213
|
+
- spec/expression/methods/strfregexp_spec.rb
|
214
|
+
- spec/expression/methods/tests_spec.rb
|
215
|
+
- spec/expression/free_space_spec.rb
|
216
|
+
- spec/expression/to_s_spec.rb
|
217
|
+
- spec/expression/clone_spec.rb
|
218
|
+
- spec/expression/to_h_spec.rb
|
219
|
+
- spec/expression/conditional_spec.rb
|
220
|
+
- spec/expression/base_spec.rb
|
221
|
+
- spec/syntax/syntax_spec.rb
|
222
|
+
- spec/syntax/syntax_token_map_spec.rb
|
223
|
+
- spec/syntax/versions/1.9.3_spec.rb
|
224
|
+
- spec/syntax/versions/2.2.0_spec.rb
|
225
|
+
- spec/syntax/versions/1.9.1_spec.rb
|
226
|
+
- spec/syntax/versions/2.0.0_spec.rb
|
227
|
+
- spec/syntax/versions/1.8.6_spec.rb
|
228
|
+
- spec/syntax/versions/aliases_spec.rb
|
229
|
+
- spec/scanner/escapes_spec.rb
|
230
|
+
- spec/scanner/properties_spec.rb
|
231
|
+
- spec/scanner/sets_spec.rb
|
232
|
+
- spec/scanner/free_space_spec.rb
|
233
|
+
- spec/scanner/keep_spec.rb
|
234
|
+
- spec/scanner/all_spec.rb
|
235
|
+
- spec/scanner/conditionals_spec.rb
|
236
|
+
- spec/scanner/types_spec.rb
|
237
|
+
- spec/scanner/scripts_spec.rb
|
238
|
+
- spec/scanner/anchors_spec.rb
|
239
|
+
- spec/scanner/unicode_blocks_spec.rb
|
240
|
+
- spec/scanner/meta_spec.rb
|
241
|
+
- spec/scanner/errors_spec.rb
|
242
|
+
- spec/scanner/refcalls_spec.rb
|
243
|
+
- spec/scanner/groups_spec.rb
|
244
|
+
- spec/scanner/literals_spec.rb
|
245
|
+
- spec/scanner/quantifiers_spec.rb
|