regexp_parser 1.3.0 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +72 -1
- data/Gemfile +3 -3
- data/README.md +12 -19
- data/Rakefile +3 -4
- data/lib/regexp_parser/expression.rb +28 -53
- data/lib/regexp_parser/expression/classes/backref.rb +18 -10
- data/lib/regexp_parser/expression/classes/conditional.rb +7 -2
- data/lib/regexp_parser/expression/classes/escape.rb +0 -4
- 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.rb +13 -0
- data/lib/regexp_parser/expression/methods/match_length.rb +172 -0
- data/lib/regexp_parser/expression/methods/options.rb +35 -0
- data/lib/regexp_parser/expression/methods/strfregexp.rb +0 -1
- data/lib/regexp_parser/expression/methods/tests.rb +6 -15
- data/lib/regexp_parser/expression/methods/traverse.rb +3 -1
- data/lib/regexp_parser/expression/quantifier.rb +2 -2
- data/lib/regexp_parser/expression/sequence.rb +3 -6
- data/lib/regexp_parser/expression/sequence_operation.rb +2 -6
- data/lib/regexp_parser/expression/subexpression.rb +3 -5
- data/lib/regexp_parser/lexer.rb +30 -44
- data/lib/regexp_parser/parser.rb +47 -24
- data/lib/regexp_parser/scanner.rb +1228 -1367
- data/lib/regexp_parser/scanner/char_type.rl +0 -3
- data/lib/regexp_parser/scanner/properties/long.yml +34 -1
- data/lib/regexp_parser/scanner/properties/short.yml +12 -0
- data/lib/regexp_parser/scanner/scanner.rl +101 -194
- data/lib/regexp_parser/syntax/tokens.rb +2 -10
- data/lib/regexp_parser/syntax/tokens/unicode_property.rb +72 -21
- data/lib/regexp_parser/syntax/versions/2.6.0.rb +10 -0
- data/lib/regexp_parser/syntax/versions/2.6.2.rb +10 -0
- data/lib/regexp_parser/syntax/versions/2.6.3.rb +10 -0
- data/lib/regexp_parser/version.rb +1 -1
- data/regexp_parser.gemspec +3 -3
- data/spec/expression/base_spec.rb +94 -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 +161 -0
- data/spec/expression/methods/match_spec.rb +25 -0
- data/spec/expression/methods/strfregexp_spec.rb +224 -0
- data/spec/expression/methods/tests_spec.rb +99 -0
- data/spec/expression/methods/traverse_spec.rb +161 -0
- data/spec/expression/options_spec.rb +128 -0
- data/spec/expression/root_spec.rb +9 -0
- data/spec/expression/sequence_spec.rb +9 -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/spec/lexer/conditionals_spec.rb +53 -0
- data/spec/lexer/delimiters_spec.rb +68 -0
- data/spec/lexer/escapes_spec.rb +14 -0
- data/spec/lexer/keep_spec.rb +10 -0
- data/spec/lexer/literals_spec.rb +89 -0
- data/spec/lexer/nesting_spec.rb +99 -0
- data/spec/lexer/refcalls_spec.rb +55 -0
- data/spec/parser/all_spec.rb +43 -0
- data/spec/parser/alternation_spec.rb +88 -0
- data/spec/parser/anchors_spec.rb +17 -0
- data/spec/parser/conditionals_spec.rb +179 -0
- data/spec/parser/errors_spec.rb +30 -0
- data/spec/parser/escapes_spec.rb +121 -0
- data/spec/parser/free_space_spec.rb +130 -0
- data/spec/parser/groups_spec.rb +108 -0
- data/spec/parser/keep_spec.rb +6 -0
- data/spec/parser/posix_classes_spec.rb +8 -0
- data/spec/parser/properties_spec.rb +115 -0
- data/spec/parser/quantifiers_spec.rb +52 -0
- data/spec/parser/refcalls_spec.rb +112 -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/spec/parser/types_spec.rb +18 -0
- data/spec/scanner/all_spec.rb +18 -0
- data/spec/scanner/anchors_spec.rb +21 -0
- data/spec/scanner/conditionals_spec.rb +128 -0
- data/spec/scanner/delimiters_spec.rb +52 -0
- data/spec/scanner/errors_spec.rb +67 -0
- data/spec/scanner/escapes_spec.rb +53 -0
- data/spec/scanner/free_space_spec.rb +133 -0
- data/spec/scanner/groups_spec.rb +52 -0
- data/spec/scanner/keep_spec.rb +10 -0
- data/spec/scanner/literals_spec.rb +49 -0
- data/spec/scanner/meta_spec.rb +18 -0
- data/spec/scanner/properties_spec.rb +64 -0
- data/spec/scanner/quantifiers_spec.rb +20 -0
- data/spec/scanner/refcalls_spec.rb +36 -0
- data/spec/scanner/sets_spec.rb +102 -0
- data/spec/scanner/types_spec.rb +14 -0
- data/spec/spec_helper.rb +15 -0
- data/{test → spec}/support/runner.rb +9 -8
- data/spec/support/shared_examples.rb +77 -0
- data/{test → spec}/support/warning_extractor.rb +5 -7
- data/spec/syntax/syntax_spec.rb +48 -0
- data/spec/syntax/syntax_token_map_spec.rb +23 -0
- data/spec/syntax/versions/1.8.6_spec.rb +17 -0
- data/spec/syntax/versions/1.9.1_spec.rb +10 -0
- data/spec/syntax/versions/1.9.3_spec.rb +9 -0
- data/spec/syntax/versions/2.0.0_spec.rb +13 -0
- data/spec/syntax/versions/2.2.0_spec.rb +9 -0
- data/spec/syntax/versions/aliases_spec.rb +37 -0
- data/spec/token/token_spec.rb +85 -0
- metadata +151 -146
- 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_conditionals.rb +0 -127
- data/test/lexer/test_keep.rb +0 -24
- data/test/lexer/test_literals.rb +0 -130
- data/test/lexer/test_nesting.rb +0 -132
- 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_anchors.rb +0 -34
- 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 -133
- 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/parser/test_types.rb +0 -50
- data/test/scanner/test_all.rb +0 -38
- data/test/scanner/test_anchors.rb +0 -38
- data/test/scanner/test_conditionals.rb +0 -184
- data/test/scanner/test_errors.rb +0 -91
- data/test/scanner/test_escapes.rb +0 -56
- data/test/scanner/test_free_space.rb +0 -200
- data/test/scanner/test_groups.rb +0 -79
- data/test/scanner/test_keep.rb +0 -35
- data/test/scanner/test_literals.rb +0 -89
- data/test/scanner/test_meta.rb +0 -40
- data/test/scanner/test_properties.rb +0 -312
- data/test/scanner/test_quantifiers.rb +0 -37
- data/test/scanner/test_refcalls.rb +0 -52
- data/test/scanner/test_scripts.rb +0 -53
- data/test/scanner/test_sets.rb +0 -119
- 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,9 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe(Regexp::Syntax::V1_9_3) do
|
4
|
+
include_examples 'syntax', Regexp::Syntax.new('ruby/1.9.3'),
|
5
|
+
implements: {
|
6
|
+
property: T::UnicodeProperty::Script_V1_9_3 + T::UnicodeProperty::Age_V1_9_3,
|
7
|
+
nonproperty: T::UnicodeProperty::Script_V1_9_3 + T::UnicodeProperty::Age_V1_9_3
|
8
|
+
}
|
9
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe(Regexp::Syntax::V2_0_0) do
|
4
|
+
include_examples 'syntax', Regexp::Syntax.new('ruby/2.0.0'),
|
5
|
+
implements: {
|
6
|
+
property: T::UnicodeProperty::Age_V2_0_0,
|
7
|
+
nonproperty: T::UnicodeProperty::Age_V2_0_0
|
8
|
+
},
|
9
|
+
excludes: {
|
10
|
+
property: [:newline],
|
11
|
+
nonproperty: [:newline]
|
12
|
+
}
|
13
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe(Regexp::Syntax::V2_2_0) do
|
4
|
+
include_examples 'syntax', Regexp::Syntax.new('ruby/2.2.0'),
|
5
|
+
implements: {
|
6
|
+
property: T::UnicodeProperty::Script_V2_2_0 + T::UnicodeProperty::Age_V2_2_0,
|
7
|
+
nonproperty: T::UnicodeProperty::Script_V2_2_0 + T::UnicodeProperty::Age_V2_2_0
|
8
|
+
}
|
9
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe(Regexp::Syntax) do
|
4
|
+
RSpec.shared_examples 'syntax alias' do |string, klass|
|
5
|
+
it "aliases #{string} to #{klass}" do
|
6
|
+
syntax = Regexp::Syntax.new(string)
|
7
|
+
expect(syntax).to be_a klass
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
include_examples 'syntax alias', 'ruby/1.8.6', Regexp::Syntax::V1_8_6
|
12
|
+
include_examples 'syntax alias', 'ruby/1.8', Regexp::Syntax::V1_8_6
|
13
|
+
include_examples 'syntax alias', 'ruby/1.9.1', Regexp::Syntax::V1_9_1
|
14
|
+
include_examples 'syntax alias', 'ruby/1.9', Regexp::Syntax::V1_9_3
|
15
|
+
include_examples 'syntax alias', 'ruby/2.0.0', Regexp::Syntax::V1_9
|
16
|
+
include_examples 'syntax alias', 'ruby/2.0', Regexp::Syntax::V2_0_0
|
17
|
+
include_examples 'syntax alias', 'ruby/2.1', Regexp::Syntax::V2_0_0
|
18
|
+
include_examples 'syntax alias', 'ruby/2.2.0', Regexp::Syntax::V2_0_0
|
19
|
+
include_examples 'syntax alias', 'ruby/2.2.10', Regexp::Syntax::V2_0_0
|
20
|
+
include_examples 'syntax alias', 'ruby/2.2', Regexp::Syntax::V2_0_0
|
21
|
+
include_examples 'syntax alias', 'ruby/2.3.0', Regexp::Syntax::V2_3_0
|
22
|
+
include_examples 'syntax alias', 'ruby/2.3', Regexp::Syntax::V2_3_0
|
23
|
+
include_examples 'syntax alias', 'ruby/2.4.0', Regexp::Syntax::V2_4_0
|
24
|
+
include_examples 'syntax alias', 'ruby/2.4.1', Regexp::Syntax::V2_4_1
|
25
|
+
include_examples 'syntax alias', 'ruby/2.5.0', Regexp::Syntax::V2_4_1
|
26
|
+
include_examples 'syntax alias', 'ruby/2.5', Regexp::Syntax::V2_5_0
|
27
|
+
include_examples 'syntax alias', 'ruby/2.6.0', Regexp::Syntax::V2_5_0
|
28
|
+
include_examples 'syntax alias', 'ruby/2.6.2', Regexp::Syntax::V2_6_2
|
29
|
+
include_examples 'syntax alias', 'ruby/2.6.3', Regexp::Syntax::V2_6_3
|
30
|
+
include_examples 'syntax alias', 'ruby/2.6', Regexp::Syntax::V2_6_3
|
31
|
+
|
32
|
+
specify('future alias warning') do
|
33
|
+
expect { Regexp::Syntax.new('ruby/5.0') }
|
34
|
+
.to output(/This library .* but you are running .* \(feature set of .*\)/)
|
35
|
+
.to_stderr
|
36
|
+
end
|
37
|
+
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.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ammar Ali
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-06-07 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,9 @@ 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.rb
|
44
|
+
- lib/regexp_parser/expression/methods/match_length.rb
|
45
|
+
- lib/regexp_parser/expression/methods/options.rb
|
43
46
|
- lib/regexp_parser/expression/methods/strfregexp.rb
|
44
47
|
- lib/regexp_parser/expression/methods/tests.rb
|
45
48
|
- lib/regexp_parser/expression/methods/traverse.rb
|
@@ -83,84 +86,87 @@ files:
|
|
83
86
|
- lib/regexp_parser/syntax/versions/2.4.0.rb
|
84
87
|
- lib/regexp_parser/syntax/versions/2.4.1.rb
|
85
88
|
- lib/regexp_parser/syntax/versions/2.5.0.rb
|
89
|
+
- lib/regexp_parser/syntax/versions/2.6.0.rb
|
90
|
+
- lib/regexp_parser/syntax/versions/2.6.2.rb
|
91
|
+
- lib/regexp_parser/syntax/versions/2.6.3.rb
|
86
92
|
- lib/regexp_parser/token.rb
|
87
93
|
- lib/regexp_parser/version.rb
|
88
94
|
- regexp_parser.gemspec
|
89
|
-
-
|
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
|
-
-
|
155
|
-
-
|
156
|
-
-
|
157
|
-
-
|
158
|
-
homepage:
|
95
|
+
- spec/expression/base_spec.rb
|
96
|
+
- spec/expression/clone_spec.rb
|
97
|
+
- spec/expression/conditional_spec.rb
|
98
|
+
- spec/expression/free_space_spec.rb
|
99
|
+
- spec/expression/methods/match_length_spec.rb
|
100
|
+
- spec/expression/methods/match_spec.rb
|
101
|
+
- spec/expression/methods/strfregexp_spec.rb
|
102
|
+
- spec/expression/methods/tests_spec.rb
|
103
|
+
- spec/expression/methods/traverse_spec.rb
|
104
|
+
- spec/expression/options_spec.rb
|
105
|
+
- spec/expression/root_spec.rb
|
106
|
+
- spec/expression/sequence_spec.rb
|
107
|
+
- spec/expression/subexpression_spec.rb
|
108
|
+
- spec/expression/to_h_spec.rb
|
109
|
+
- spec/expression/to_s_spec.rb
|
110
|
+
- spec/lexer/all_spec.rb
|
111
|
+
- spec/lexer/conditionals_spec.rb
|
112
|
+
- spec/lexer/delimiters_spec.rb
|
113
|
+
- spec/lexer/escapes_spec.rb
|
114
|
+
- spec/lexer/keep_spec.rb
|
115
|
+
- spec/lexer/literals_spec.rb
|
116
|
+
- spec/lexer/nesting_spec.rb
|
117
|
+
- spec/lexer/refcalls_spec.rb
|
118
|
+
- spec/parser/all_spec.rb
|
119
|
+
- spec/parser/alternation_spec.rb
|
120
|
+
- spec/parser/anchors_spec.rb
|
121
|
+
- spec/parser/conditionals_spec.rb
|
122
|
+
- spec/parser/errors_spec.rb
|
123
|
+
- spec/parser/escapes_spec.rb
|
124
|
+
- spec/parser/free_space_spec.rb
|
125
|
+
- spec/parser/groups_spec.rb
|
126
|
+
- spec/parser/keep_spec.rb
|
127
|
+
- spec/parser/posix_classes_spec.rb
|
128
|
+
- spec/parser/properties_spec.rb
|
129
|
+
- spec/parser/quantifiers_spec.rb
|
130
|
+
- spec/parser/refcalls_spec.rb
|
131
|
+
- spec/parser/set/intersections_spec.rb
|
132
|
+
- spec/parser/set/ranges_spec.rb
|
133
|
+
- spec/parser/sets_spec.rb
|
134
|
+
- spec/parser/types_spec.rb
|
135
|
+
- spec/scanner/all_spec.rb
|
136
|
+
- spec/scanner/anchors_spec.rb
|
137
|
+
- spec/scanner/conditionals_spec.rb
|
138
|
+
- spec/scanner/delimiters_spec.rb
|
139
|
+
- spec/scanner/errors_spec.rb
|
140
|
+
- spec/scanner/escapes_spec.rb
|
141
|
+
- spec/scanner/free_space_spec.rb
|
142
|
+
- spec/scanner/groups_spec.rb
|
143
|
+
- spec/scanner/keep_spec.rb
|
144
|
+
- spec/scanner/literals_spec.rb
|
145
|
+
- spec/scanner/meta_spec.rb
|
146
|
+
- spec/scanner/properties_spec.rb
|
147
|
+
- spec/scanner/quantifiers_spec.rb
|
148
|
+
- spec/scanner/refcalls_spec.rb
|
149
|
+
- spec/scanner/sets_spec.rb
|
150
|
+
- spec/scanner/types_spec.rb
|
151
|
+
- spec/spec_helper.rb
|
152
|
+
- spec/support/runner.rb
|
153
|
+
- spec/support/shared_examples.rb
|
154
|
+
- spec/support/warning_extractor.rb
|
155
|
+
- spec/syntax/syntax_spec.rb
|
156
|
+
- spec/syntax/syntax_token_map_spec.rb
|
157
|
+
- spec/syntax/versions/1.8.6_spec.rb
|
158
|
+
- spec/syntax/versions/1.9.1_spec.rb
|
159
|
+
- spec/syntax/versions/1.9.3_spec.rb
|
160
|
+
- spec/syntax/versions/2.0.0_spec.rb
|
161
|
+
- spec/syntax/versions/2.2.0_spec.rb
|
162
|
+
- spec/syntax/versions/aliases_spec.rb
|
163
|
+
- spec/token/token_spec.rb
|
164
|
+
homepage: https://github.com/ammar/regexp_parser
|
159
165
|
licenses:
|
160
166
|
- MIT
|
161
167
|
metadata:
|
162
168
|
issue_tracker: https://github.com/ammar/regexp_parser/issues
|
163
|
-
post_install_message:
|
169
|
+
post_install_message:
|
164
170
|
rdoc_options:
|
165
171
|
- "--inline-source"
|
166
172
|
- "--charset=UTF-8"
|
@@ -177,78 +183,77 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
177
183
|
- !ruby/object:Gem::Version
|
178
184
|
version: '0'
|
179
185
|
requirements: []
|
180
|
-
|
181
|
-
|
182
|
-
signing_key:
|
186
|
+
rubygems_version: 3.1.2
|
187
|
+
signing_key:
|
183
188
|
specification_version: 4
|
184
189
|
summary: Scanner, lexer, parser for ruby's regular expressions
|
185
190
|
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
|
-
-
|
251
|
-
-
|
252
|
-
-
|
253
|
-
-
|
254
|
-
-
|
191
|
+
- spec/token/token_spec.rb
|
192
|
+
- spec/spec_helper.rb
|
193
|
+
- spec/lexer/escapes_spec.rb
|
194
|
+
- spec/lexer/keep_spec.rb
|
195
|
+
- spec/lexer/all_spec.rb
|
196
|
+
- spec/lexer/conditionals_spec.rb
|
197
|
+
- spec/lexer/nesting_spec.rb
|
198
|
+
- spec/lexer/delimiters_spec.rb
|
199
|
+
- spec/lexer/refcalls_spec.rb
|
200
|
+
- spec/lexer/literals_spec.rb
|
201
|
+
- spec/parser/escapes_spec.rb
|
202
|
+
- spec/parser/properties_spec.rb
|
203
|
+
- spec/parser/sets_spec.rb
|
204
|
+
- spec/parser/free_space_spec.rb
|
205
|
+
- spec/parser/keep_spec.rb
|
206
|
+
- spec/parser/all_spec.rb
|
207
|
+
- spec/parser/conditionals_spec.rb
|
208
|
+
- spec/parser/types_spec.rb
|
209
|
+
- spec/parser/anchors_spec.rb
|
210
|
+
- spec/parser/alternation_spec.rb
|
211
|
+
- spec/parser/posix_classes_spec.rb
|
212
|
+
- spec/parser/set/ranges_spec.rb
|
213
|
+
- spec/parser/set/intersections_spec.rb
|
214
|
+
- spec/parser/errors_spec.rb
|
215
|
+
- spec/parser/refcalls_spec.rb
|
216
|
+
- spec/parser/groups_spec.rb
|
217
|
+
- spec/parser/quantifiers_spec.rb
|
218
|
+
- spec/support/warning_extractor.rb
|
219
|
+
- spec/support/shared_examples.rb
|
220
|
+
- spec/support/runner.rb
|
221
|
+
- spec/expression/subexpression_spec.rb
|
222
|
+
- spec/expression/methods/match_spec.rb
|
223
|
+
- spec/expression/methods/match_length_spec.rb
|
224
|
+
- spec/expression/methods/traverse_spec.rb
|
225
|
+
- spec/expression/methods/strfregexp_spec.rb
|
226
|
+
- spec/expression/methods/tests_spec.rb
|
227
|
+
- spec/expression/free_space_spec.rb
|
228
|
+
- spec/expression/options_spec.rb
|
229
|
+
- spec/expression/to_s_spec.rb
|
230
|
+
- spec/expression/root_spec.rb
|
231
|
+
- spec/expression/sequence_spec.rb
|
232
|
+
- spec/expression/clone_spec.rb
|
233
|
+
- spec/expression/to_h_spec.rb
|
234
|
+
- spec/expression/conditional_spec.rb
|
235
|
+
- spec/expression/base_spec.rb
|
236
|
+
- spec/syntax/syntax_spec.rb
|
237
|
+
- spec/syntax/syntax_token_map_spec.rb
|
238
|
+
- spec/syntax/versions/1.9.3_spec.rb
|
239
|
+
- spec/syntax/versions/2.2.0_spec.rb
|
240
|
+
- spec/syntax/versions/1.9.1_spec.rb
|
241
|
+
- spec/syntax/versions/2.0.0_spec.rb
|
242
|
+
- spec/syntax/versions/1.8.6_spec.rb
|
243
|
+
- spec/syntax/versions/aliases_spec.rb
|
244
|
+
- spec/scanner/escapes_spec.rb
|
245
|
+
- spec/scanner/properties_spec.rb
|
246
|
+
- spec/scanner/sets_spec.rb
|
247
|
+
- spec/scanner/free_space_spec.rb
|
248
|
+
- spec/scanner/keep_spec.rb
|
249
|
+
- spec/scanner/all_spec.rb
|
250
|
+
- spec/scanner/conditionals_spec.rb
|
251
|
+
- spec/scanner/types_spec.rb
|
252
|
+
- spec/scanner/anchors_spec.rb
|
253
|
+
- spec/scanner/meta_spec.rb
|
254
|
+
- spec/scanner/errors_spec.rb
|
255
|
+
- spec/scanner/delimiters_spec.rb
|
256
|
+
- spec/scanner/refcalls_spec.rb
|
257
|
+
- spec/scanner/groups_spec.rb
|
258
|
+
- spec/scanner/literals_spec.rb
|
259
|
+
- spec/scanner/quantifiers_spec.rb
|