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.
Files changed (133) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +27 -1
  3. data/Gemfile +1 -1
  4. data/README.md +9 -13
  5. data/lib/regexp_parser/expression.rb +33 -21
  6. data/lib/regexp_parser/expression/classes/backref.rb +18 -10
  7. data/lib/regexp_parser/expression/classes/conditional.rb +4 -0
  8. data/lib/regexp_parser/expression/classes/group.rb +4 -2
  9. data/lib/regexp_parser/expression/classes/keep.rb +1 -3
  10. data/lib/regexp_parser/expression/methods/match_length.rb +172 -0
  11. data/lib/regexp_parser/expression/quantifier.rb +2 -2
  12. data/lib/regexp_parser/expression/sequence.rb +0 -4
  13. data/lib/regexp_parser/expression/subexpression.rb +3 -5
  14. data/lib/regexp_parser/lexer.rb +31 -24
  15. data/lib/regexp_parser/parser.rb +25 -3
  16. data/lib/regexp_parser/syntax/tokens.rb +2 -10
  17. data/lib/regexp_parser/version.rb +1 -1
  18. data/regexp_parser.gemspec +2 -2
  19. data/spec/expression/base_spec.rb +80 -0
  20. data/spec/expression/clone_spec.rb +120 -0
  21. data/spec/expression/conditional_spec.rb +89 -0
  22. data/spec/expression/free_space_spec.rb +27 -0
  23. data/spec/expression/methods/match_length_spec.rb +141 -0
  24. data/spec/expression/methods/strfregexp_spec.rb +224 -0
  25. data/spec/expression/methods/tests_spec.rb +97 -0
  26. data/spec/expression/methods/traverse_spec.rb +140 -0
  27. data/spec/expression/subexpression_spec.rb +50 -0
  28. data/spec/expression/to_h_spec.rb +26 -0
  29. data/spec/expression/to_s_spec.rb +100 -0
  30. data/spec/lexer/all_spec.rb +22 -0
  31. data/{test/lexer/test_conditionals.rb → spec/lexer/conditionals_spec.rb} +31 -35
  32. data/spec/lexer/escapes_spec.rb +38 -0
  33. data/spec/lexer/keep_spec.rb +22 -0
  34. data/{test/lexer/test_literals.rb → spec/lexer/literals_spec.rb} +20 -24
  35. data/{test/lexer/test_nesting.rb → spec/lexer/nesting_spec.rb} +11 -13
  36. data/spec/lexer/refcalls_spec.rb +54 -0
  37. data/spec/parser/all_spec.rb +31 -0
  38. data/spec/parser/alternation_spec.rb +88 -0
  39. data/{test/parser/test_anchors.rb → spec/parser/anchors_spec.rb} +7 -10
  40. data/spec/parser/conditionals_spec.rb +179 -0
  41. data/spec/parser/errors_spec.rb +51 -0
  42. data/spec/parser/escapes_spec.rb +132 -0
  43. data/spec/parser/free_space_spec.rb +130 -0
  44. data/spec/parser/groups_spec.rb +267 -0
  45. data/spec/parser/keep_spec.rb +19 -0
  46. data/spec/parser/posix_classes_spec.rb +27 -0
  47. data/spec/parser/properties_spec.rb +127 -0
  48. data/spec/parser/quantifiers_spec.rb +293 -0
  49. data/spec/parser/refcalls_spec.rb +237 -0
  50. data/spec/parser/set/intersections_spec.rb +127 -0
  51. data/spec/parser/set/ranges_spec.rb +111 -0
  52. data/spec/parser/sets_spec.rb +178 -0
  53. data/{test/parser/test_types.rb → spec/parser/types_spec.rb} +13 -20
  54. data/spec/scanner/all_spec.rb +18 -0
  55. data/{test/scanner/test_anchors.rb → spec/scanner/anchors_spec.rb} +8 -10
  56. data/{test/scanner/test_conditionals.rb → spec/scanner/conditionals_spec.rb} +49 -53
  57. data/spec/scanner/errors_spec.rb +90 -0
  58. data/{test/scanner/test_escapes.rb → spec/scanner/escapes_spec.rb} +8 -10
  59. data/{test/scanner/test_free_space.rb → spec/scanner/free_space_spec.rb} +48 -52
  60. data/{test/scanner/test_groups.rb → spec/scanner/groups_spec.rb} +33 -41
  61. data/spec/scanner/keep_spec.rb +33 -0
  62. data/{test/scanner/test_literals.rb → spec/scanner/literals_spec.rb} +8 -12
  63. data/{test/scanner/test_meta.rb → spec/scanner/meta_spec.rb} +8 -10
  64. data/{test/scanner/test_properties.rb → spec/scanner/properties_spec.rb} +14 -19
  65. data/{test/scanner/test_quantifiers.rb → spec/scanner/quantifiers_spec.rb} +7 -9
  66. data/{test/scanner/test_refcalls.rb → spec/scanner/refcalls_spec.rb} +9 -9
  67. data/{test/scanner/test_scripts.rb → spec/scanner/scripts_spec.rb} +8 -12
  68. data/{test/scanner/test_sets.rb → spec/scanner/sets_spec.rb} +14 -17
  69. data/spec/scanner/types_spec.rb +29 -0
  70. data/spec/scanner/unicode_blocks_spec.rb +28 -0
  71. data/spec/spec_helper.rb +14 -0
  72. data/{test → spec}/support/runner.rb +9 -8
  73. data/{test → spec}/support/warning_extractor.rb +5 -7
  74. data/spec/syntax/syntax_spec.rb +44 -0
  75. data/spec/syntax/syntax_token_map_spec.rb +23 -0
  76. data/spec/syntax/versions/1.8.6_spec.rb +38 -0
  77. data/spec/syntax/versions/1.9.1_spec.rb +23 -0
  78. data/spec/syntax/versions/1.9.3_spec.rb +22 -0
  79. data/spec/syntax/versions/2.0.0_spec.rb +28 -0
  80. data/spec/syntax/versions/2.2.0_spec.rb +22 -0
  81. data/spec/syntax/versions/aliases_spec.rb +119 -0
  82. data/spec/token/token_spec.rb +85 -0
  83. metadata +131 -140
  84. data/test/expression/test_all.rb +0 -12
  85. data/test/expression/test_base.rb +0 -90
  86. data/test/expression/test_clone.rb +0 -89
  87. data/test/expression/test_conditionals.rb +0 -113
  88. data/test/expression/test_free_space.rb +0 -35
  89. data/test/expression/test_set.rb +0 -84
  90. data/test/expression/test_strfregexp.rb +0 -230
  91. data/test/expression/test_subexpression.rb +0 -58
  92. data/test/expression/test_tests.rb +0 -99
  93. data/test/expression/test_to_h.rb +0 -59
  94. data/test/expression/test_to_s.rb +0 -104
  95. data/test/expression/test_traverse.rb +0 -161
  96. data/test/helpers.rb +0 -10
  97. data/test/lexer/test_all.rb +0 -41
  98. data/test/lexer/test_keep.rb +0 -24
  99. data/test/lexer/test_refcalls.rb +0 -56
  100. data/test/parser/set/test_intersections.rb +0 -127
  101. data/test/parser/set/test_ranges.rb +0 -111
  102. data/test/parser/test_all.rb +0 -64
  103. data/test/parser/test_alternation.rb +0 -92
  104. data/test/parser/test_conditionals.rb +0 -187
  105. data/test/parser/test_errors.rb +0 -63
  106. data/test/parser/test_escapes.rb +0 -134
  107. data/test/parser/test_free_space.rb +0 -139
  108. data/test/parser/test_groups.rb +0 -289
  109. data/test/parser/test_keep.rb +0 -21
  110. data/test/parser/test_posix_classes.rb +0 -27
  111. data/test/parser/test_properties.rb +0 -134
  112. data/test/parser/test_quantifiers.rb +0 -301
  113. data/test/parser/test_refcalls.rb +0 -186
  114. data/test/parser/test_sets.rb +0 -179
  115. data/test/scanner/test_all.rb +0 -38
  116. data/test/scanner/test_errors.rb +0 -91
  117. data/test/scanner/test_keep.rb +0 -35
  118. data/test/scanner/test_types.rb +0 -35
  119. data/test/scanner/test_unicode_blocks.rb +0 -30
  120. data/test/support/disable_autotest.rb +0 -8
  121. data/test/syntax/test_all.rb +0 -6
  122. data/test/syntax/test_syntax.rb +0 -61
  123. data/test/syntax/test_syntax_token_map.rb +0 -25
  124. data/test/syntax/versions/test_1.8.rb +0 -55
  125. data/test/syntax/versions/test_1.9.1.rb +0 -36
  126. data/test/syntax/versions/test_1.9.3.rb +0 -32
  127. data/test/syntax/versions/test_2.0.0.rb +0 -37
  128. data/test/syntax/versions/test_2.2.0.rb +0 -32
  129. data/test/syntax/versions/test_aliases.rb +0 -129
  130. data/test/syntax/versions/test_all.rb +0 -5
  131. data/test/test_all.rb +0 -5
  132. data/test/token/test_all.rb +0 -2
  133. 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.0
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-04-02 00:00:00.000000000 Z
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
- - test/expression/test_all.rb
91
- - test/expression/test_base.rb
92
- - test/expression/test_clone.rb
93
- - test/expression/test_conditionals.rb
94
- - test/expression/test_free_space.rb
95
- - test/expression/test_set.rb
96
- - test/expression/test_strfregexp.rb
97
- - test/expression/test_subexpression.rb
98
- - test/expression/test_tests.rb
99
- - test/expression/test_to_h.rb
100
- - test/expression/test_to_s.rb
101
- - test/expression/test_traverse.rb
102
- - test/helpers.rb
103
- - test/lexer/test_all.rb
104
- - test/lexer/test_conditionals.rb
105
- - test/lexer/test_keep.rb
106
- - test/lexer/test_literals.rb
107
- - test/lexer/test_nesting.rb
108
- - test/lexer/test_refcalls.rb
109
- - test/parser/set/test_intersections.rb
110
- - test/parser/set/test_ranges.rb
111
- - test/parser/test_all.rb
112
- - test/parser/test_alternation.rb
113
- - test/parser/test_anchors.rb
114
- - test/parser/test_conditionals.rb
115
- - test/parser/test_errors.rb
116
- - test/parser/test_escapes.rb
117
- - test/parser/test_free_space.rb
118
- - test/parser/test_groups.rb
119
- - test/parser/test_keep.rb
120
- - test/parser/test_posix_classes.rb
121
- - test/parser/test_properties.rb
122
- - test/parser/test_quantifiers.rb
123
- - test/parser/test_refcalls.rb
124
- - test/parser/test_sets.rb
125
- - test/parser/test_types.rb
126
- - test/scanner/test_all.rb
127
- - test/scanner/test_anchors.rb
128
- - test/scanner/test_conditionals.rb
129
- - test/scanner/test_errors.rb
130
- - test/scanner/test_escapes.rb
131
- - test/scanner/test_free_space.rb
132
- - test/scanner/test_groups.rb
133
- - test/scanner/test_keep.rb
134
- - test/scanner/test_literals.rb
135
- - test/scanner/test_meta.rb
136
- - test/scanner/test_properties.rb
137
- - test/scanner/test_quantifiers.rb
138
- - test/scanner/test_refcalls.rb
139
- - test/scanner/test_scripts.rb
140
- - test/scanner/test_sets.rb
141
- - test/scanner/test_types.rb
142
- - test/scanner/test_unicode_blocks.rb
143
- - test/support/disable_autotest.rb
144
- - test/support/runner.rb
145
- - test/support/warning_extractor.rb
146
- - test/syntax/test_all.rb
147
- - test/syntax/test_syntax.rb
148
- - test/syntax/test_syntax_token_map.rb
149
- - test/syntax/versions/test_1.8.rb
150
- - test/syntax/versions/test_1.9.1.rb
151
- - test/syntax/versions/test_1.9.3.rb
152
- - test/syntax/versions/test_2.0.0.rb
153
- - test/syntax/versions/test_2.2.0.rb
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
- - test/token/test_token.rb
187
- - test/token/test_all.rb
188
- - test/helpers.rb
189
- - test/lexer/test_keep.rb
190
- - test/lexer/test_conditionals.rb
191
- - test/lexer/test_refcalls.rb
192
- - test/lexer/test_literals.rb
193
- - test/lexer/test_all.rb
194
- - test/lexer/test_nesting.rb
195
- - test/parser/test_sets.rb
196
- - test/parser/test_properties.rb
197
- - test/parser/test_types.rb
198
- - test/parser/test_groups.rb
199
- - test/parser/test_alternation.rb
200
- - test/parser/test_free_space.rb
201
- - test/parser/test_anchors.rb
202
- - test/parser/test_escapes.rb
203
- - test/parser/test_posix_classes.rb
204
- - test/parser/test_quantifiers.rb
205
- - test/parser/test_keep.rb
206
- - test/parser/test_conditionals.rb
207
- - test/parser/test_errors.rb
208
- - test/parser/test_refcalls.rb
209
- - test/parser/set/test_intersections.rb
210
- - test/parser/set/test_ranges.rb
211
- - test/parser/test_all.rb
212
- - test/support/disable_autotest.rb
213
- - test/support/warning_extractor.rb
214
- - test/support/runner.rb
215
- - test/expression/test_subexpression.rb
216
- - test/expression/test_base.rb
217
- - test/expression/test_free_space.rb
218
- - test/expression/test_to_h.rb
219
- - test/expression/test_set.rb
220
- - test/expression/test_conditionals.rb
221
- - test/expression/test_clone.rb
222
- - test/expression/test_tests.rb
223
- - test/expression/test_to_s.rb
224
- - test/expression/test_traverse.rb
225
- - test/expression/test_all.rb
226
- - test/expression/test_strfregexp.rb
227
- - test/syntax/test_syntax_token_map.rb
228
- - test/syntax/versions/test_2.0.0.rb
229
- - test/syntax/versions/test_aliases.rb
230
- - test/syntax/versions/test_1.8.rb
231
- - test/syntax/versions/test_1.9.1.rb
232
- - test/syntax/versions/test_2.2.0.rb
233
- - test/syntax/versions/test_1.9.3.rb
234
- - test/syntax/versions/test_all.rb
235
- - test/syntax/test_syntax.rb
236
- - test/syntax/test_all.rb
237
- - test/test_all.rb
238
- - test/scanner/test_sets.rb
239
- - test/scanner/test_properties.rb
240
- - test/scanner/test_scripts.rb
241
- - test/scanner/test_types.rb
242
- - test/scanner/test_groups.rb
243
- - test/scanner/test_meta.rb
244
- - test/scanner/test_free_space.rb
245
- - test/scanner/test_anchors.rb
246
- - test/scanner/test_escapes.rb
247
- - test/scanner/test_unicode_blocks.rb
248
- - test/scanner/test_quantifiers.rb
249
- - test/scanner/test_keep.rb
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