regexp_parser 1.3.0 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (169) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +53 -1
  3. data/Gemfile +3 -3
  4. data/README.md +10 -14
  5. data/Rakefile +3 -4
  6. data/lib/regexp_parser/expression.rb +28 -53
  7. data/lib/regexp_parser/expression/classes/backref.rb +18 -10
  8. data/lib/regexp_parser/expression/classes/conditional.rb +7 -2
  9. data/lib/regexp_parser/expression/classes/escape.rb +0 -4
  10. data/lib/regexp_parser/expression/classes/group.rb +4 -2
  11. data/lib/regexp_parser/expression/classes/keep.rb +1 -3
  12. data/lib/regexp_parser/expression/methods/match.rb +13 -0
  13. data/lib/regexp_parser/expression/methods/match_length.rb +172 -0
  14. data/lib/regexp_parser/expression/methods/options.rb +35 -0
  15. data/lib/regexp_parser/expression/methods/strfregexp.rb +0 -1
  16. data/lib/regexp_parser/expression/methods/tests.rb +6 -15
  17. data/lib/regexp_parser/expression/quantifier.rb +2 -2
  18. data/lib/regexp_parser/expression/sequence.rb +3 -6
  19. data/lib/regexp_parser/expression/sequence_operation.rb +2 -6
  20. data/lib/regexp_parser/expression/subexpression.rb +3 -5
  21. data/lib/regexp_parser/lexer.rb +30 -44
  22. data/lib/regexp_parser/parser.rb +47 -24
  23. data/lib/regexp_parser/scanner.rb +1159 -1329
  24. data/lib/regexp_parser/scanner/char_type.rl +0 -3
  25. data/lib/regexp_parser/scanner/properties/long.yml +34 -1
  26. data/lib/regexp_parser/scanner/properties/short.yml +12 -0
  27. data/lib/regexp_parser/scanner/scanner.rl +82 -190
  28. data/lib/regexp_parser/syntax/tokens.rb +2 -10
  29. data/lib/regexp_parser/syntax/tokens/unicode_property.rb +72 -21
  30. data/lib/regexp_parser/syntax/versions/2.6.0.rb +10 -0
  31. data/lib/regexp_parser/syntax/versions/2.6.2.rb +10 -0
  32. data/lib/regexp_parser/syntax/versions/2.6.3.rb +10 -0
  33. data/lib/regexp_parser/version.rb +1 -1
  34. data/regexp_parser.gemspec +3 -3
  35. data/spec/expression/base_spec.rb +94 -0
  36. data/spec/expression/clone_spec.rb +120 -0
  37. data/spec/expression/conditional_spec.rb +89 -0
  38. data/spec/expression/free_space_spec.rb +27 -0
  39. data/spec/expression/methods/match_length_spec.rb +154 -0
  40. data/spec/expression/methods/match_spec.rb +25 -0
  41. data/spec/expression/methods/strfregexp_spec.rb +224 -0
  42. data/spec/expression/methods/tests_spec.rb +99 -0
  43. data/spec/expression/methods/traverse_spec.rb +140 -0
  44. data/spec/expression/options_spec.rb +128 -0
  45. data/spec/expression/root_spec.rb +9 -0
  46. data/spec/expression/sequence_spec.rb +9 -0
  47. data/spec/expression/subexpression_spec.rb +50 -0
  48. data/spec/expression/to_h_spec.rb +26 -0
  49. data/spec/expression/to_s_spec.rb +100 -0
  50. data/spec/lexer/all_spec.rb +22 -0
  51. data/spec/lexer/conditionals_spec.rb +53 -0
  52. data/spec/lexer/escapes_spec.rb +14 -0
  53. data/spec/lexer/keep_spec.rb +10 -0
  54. data/spec/lexer/literals_spec.rb +89 -0
  55. data/spec/lexer/nesting_spec.rb +99 -0
  56. data/spec/lexer/refcalls_spec.rb +55 -0
  57. data/spec/parser/all_spec.rb +43 -0
  58. data/spec/parser/alternation_spec.rb +88 -0
  59. data/spec/parser/anchors_spec.rb +17 -0
  60. data/spec/parser/conditionals_spec.rb +179 -0
  61. data/spec/parser/errors_spec.rb +30 -0
  62. data/spec/parser/escapes_spec.rb +121 -0
  63. data/spec/parser/free_space_spec.rb +130 -0
  64. data/spec/parser/groups_spec.rb +108 -0
  65. data/spec/parser/keep_spec.rb +6 -0
  66. data/spec/parser/posix_classes_spec.rb +8 -0
  67. data/spec/parser/properties_spec.rb +115 -0
  68. data/spec/parser/quantifiers_spec.rb +51 -0
  69. data/spec/parser/refcalls_spec.rb +112 -0
  70. data/spec/parser/set/intersections_spec.rb +127 -0
  71. data/spec/parser/set/ranges_spec.rb +111 -0
  72. data/spec/parser/sets_spec.rb +178 -0
  73. data/spec/parser/types_spec.rb +18 -0
  74. data/spec/scanner/all_spec.rb +18 -0
  75. data/spec/scanner/anchors_spec.rb +21 -0
  76. data/spec/scanner/conditionals_spec.rb +128 -0
  77. data/spec/scanner/errors_spec.rb +68 -0
  78. data/spec/scanner/escapes_spec.rb +53 -0
  79. data/spec/scanner/free_space_spec.rb +133 -0
  80. data/spec/scanner/groups_spec.rb +52 -0
  81. data/spec/scanner/keep_spec.rb +10 -0
  82. data/spec/scanner/literals_spec.rb +49 -0
  83. data/spec/scanner/meta_spec.rb +18 -0
  84. data/spec/scanner/properties_spec.rb +64 -0
  85. data/spec/scanner/quantifiers_spec.rb +20 -0
  86. data/spec/scanner/refcalls_spec.rb +36 -0
  87. data/spec/scanner/sets_spec.rb +102 -0
  88. data/spec/scanner/types_spec.rb +14 -0
  89. data/spec/spec_helper.rb +15 -0
  90. data/{test → spec}/support/runner.rb +9 -8
  91. data/spec/support/shared_examples.rb +77 -0
  92. data/{test → spec}/support/warning_extractor.rb +5 -7
  93. data/spec/syntax/syntax_spec.rb +48 -0
  94. data/spec/syntax/syntax_token_map_spec.rb +23 -0
  95. data/spec/syntax/versions/1.8.6_spec.rb +17 -0
  96. data/spec/syntax/versions/1.9.1_spec.rb +10 -0
  97. data/spec/syntax/versions/1.9.3_spec.rb +9 -0
  98. data/spec/syntax/versions/2.0.0_spec.rb +13 -0
  99. data/spec/syntax/versions/2.2.0_spec.rb +9 -0
  100. data/spec/syntax/versions/aliases_spec.rb +37 -0
  101. data/spec/token/token_spec.rb +85 -0
  102. metadata +144 -143
  103. data/test/expression/test_all.rb +0 -12
  104. data/test/expression/test_base.rb +0 -90
  105. data/test/expression/test_clone.rb +0 -89
  106. data/test/expression/test_conditionals.rb +0 -113
  107. data/test/expression/test_free_space.rb +0 -35
  108. data/test/expression/test_set.rb +0 -84
  109. data/test/expression/test_strfregexp.rb +0 -230
  110. data/test/expression/test_subexpression.rb +0 -58
  111. data/test/expression/test_tests.rb +0 -99
  112. data/test/expression/test_to_h.rb +0 -59
  113. data/test/expression/test_to_s.rb +0 -104
  114. data/test/expression/test_traverse.rb +0 -161
  115. data/test/helpers.rb +0 -10
  116. data/test/lexer/test_all.rb +0 -41
  117. data/test/lexer/test_conditionals.rb +0 -127
  118. data/test/lexer/test_keep.rb +0 -24
  119. data/test/lexer/test_literals.rb +0 -130
  120. data/test/lexer/test_nesting.rb +0 -132
  121. data/test/lexer/test_refcalls.rb +0 -56
  122. data/test/parser/set/test_intersections.rb +0 -127
  123. data/test/parser/set/test_ranges.rb +0 -111
  124. data/test/parser/test_all.rb +0 -64
  125. data/test/parser/test_alternation.rb +0 -92
  126. data/test/parser/test_anchors.rb +0 -34
  127. data/test/parser/test_conditionals.rb +0 -187
  128. data/test/parser/test_errors.rb +0 -63
  129. data/test/parser/test_escapes.rb +0 -134
  130. data/test/parser/test_free_space.rb +0 -139
  131. data/test/parser/test_groups.rb +0 -289
  132. data/test/parser/test_keep.rb +0 -21
  133. data/test/parser/test_posix_classes.rb +0 -27
  134. data/test/parser/test_properties.rb +0 -133
  135. data/test/parser/test_quantifiers.rb +0 -301
  136. data/test/parser/test_refcalls.rb +0 -186
  137. data/test/parser/test_sets.rb +0 -179
  138. data/test/parser/test_types.rb +0 -50
  139. data/test/scanner/test_all.rb +0 -38
  140. data/test/scanner/test_anchors.rb +0 -38
  141. data/test/scanner/test_conditionals.rb +0 -184
  142. data/test/scanner/test_errors.rb +0 -91
  143. data/test/scanner/test_escapes.rb +0 -56
  144. data/test/scanner/test_free_space.rb +0 -200
  145. data/test/scanner/test_groups.rb +0 -79
  146. data/test/scanner/test_keep.rb +0 -35
  147. data/test/scanner/test_literals.rb +0 -89
  148. data/test/scanner/test_meta.rb +0 -40
  149. data/test/scanner/test_properties.rb +0 -312
  150. data/test/scanner/test_quantifiers.rb +0 -37
  151. data/test/scanner/test_refcalls.rb +0 -52
  152. data/test/scanner/test_scripts.rb +0 -53
  153. data/test/scanner/test_sets.rb +0 -119
  154. data/test/scanner/test_types.rb +0 -35
  155. data/test/scanner/test_unicode_blocks.rb +0 -30
  156. data/test/support/disable_autotest.rb +0 -8
  157. data/test/syntax/test_all.rb +0 -6
  158. data/test/syntax/test_syntax.rb +0 -61
  159. data/test/syntax/test_syntax_token_map.rb +0 -25
  160. data/test/syntax/versions/test_1.8.rb +0 -55
  161. data/test/syntax/versions/test_1.9.1.rb +0 -36
  162. data/test/syntax/versions/test_1.9.3.rb +0 -32
  163. data/test/syntax/versions/test_2.0.0.rb +0 -37
  164. data/test/syntax/versions/test_2.2.0.rb +0 -32
  165. data/test/syntax/versions/test_aliases.rb +0 -129
  166. data/test/syntax/versions/test_all.rb +0 -5
  167. data/test/test_all.rb +0 -5
  168. data/test/token/test_all.rb +0 -2
  169. 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.3.0
4
+ version: 1.6.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: 2018-11-14 00:00:00.000000000 Z
11
+ date: 2019-07-16 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,79 +86,80 @@ 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
- - test/expression/test_all.rb
90
- - test/expression/test_base.rb
91
- - test/expression/test_clone.rb
92
- - test/expression/test_conditionals.rb
93
- - test/expression/test_free_space.rb
94
- - test/expression/test_set.rb
95
- - test/expression/test_strfregexp.rb
96
- - test/expression/test_subexpression.rb
97
- - test/expression/test_tests.rb
98
- - test/expression/test_to_h.rb
99
- - test/expression/test_to_s.rb
100
- - test/expression/test_traverse.rb
101
- - test/helpers.rb
102
- - test/lexer/test_all.rb
103
- - test/lexer/test_conditionals.rb
104
- - test/lexer/test_keep.rb
105
- - test/lexer/test_literals.rb
106
- - test/lexer/test_nesting.rb
107
- - test/lexer/test_refcalls.rb
108
- - test/parser/set/test_intersections.rb
109
- - test/parser/set/test_ranges.rb
110
- - test/parser/test_all.rb
111
- - test/parser/test_alternation.rb
112
- - test/parser/test_anchors.rb
113
- - test/parser/test_conditionals.rb
114
- - test/parser/test_errors.rb
115
- - test/parser/test_escapes.rb
116
- - test/parser/test_free_space.rb
117
- - test/parser/test_groups.rb
118
- - test/parser/test_keep.rb
119
- - test/parser/test_posix_classes.rb
120
- - test/parser/test_properties.rb
121
- - test/parser/test_quantifiers.rb
122
- - test/parser/test_refcalls.rb
123
- - test/parser/test_sets.rb
124
- - test/parser/test_types.rb
125
- - test/scanner/test_all.rb
126
- - test/scanner/test_anchors.rb
127
- - test/scanner/test_conditionals.rb
128
- - test/scanner/test_errors.rb
129
- - test/scanner/test_escapes.rb
130
- - test/scanner/test_free_space.rb
131
- - test/scanner/test_groups.rb
132
- - test/scanner/test_keep.rb
133
- - test/scanner/test_literals.rb
134
- - test/scanner/test_meta.rb
135
- - test/scanner/test_properties.rb
136
- - test/scanner/test_quantifiers.rb
137
- - test/scanner/test_refcalls.rb
138
- - test/scanner/test_scripts.rb
139
- - test/scanner/test_sets.rb
140
- - test/scanner/test_types.rb
141
- - test/scanner/test_unicode_blocks.rb
142
- - test/support/disable_autotest.rb
143
- - test/support/runner.rb
144
- - test/support/warning_extractor.rb
145
- - test/syntax/test_all.rb
146
- - test/syntax/test_syntax.rb
147
- - test/syntax/test_syntax_token_map.rb
148
- - test/syntax/versions/test_1.8.rb
149
- - test/syntax/versions/test_1.9.1.rb
150
- - test/syntax/versions/test_1.9.3.rb
151
- - test/syntax/versions/test_2.0.0.rb
152
- - test/syntax/versions/test_2.2.0.rb
153
- - test/syntax/versions/test_aliases.rb
154
- - test/syntax/versions/test_all.rb
155
- - test/test_all.rb
156
- - test/token/test_all.rb
157
- - test/token/test_token.rb
158
- homepage: http://github.com/ammar/regexp_parser
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/escapes_spec.rb
113
+ - spec/lexer/keep_spec.rb
114
+ - spec/lexer/literals_spec.rb
115
+ - spec/lexer/nesting_spec.rb
116
+ - spec/lexer/refcalls_spec.rb
117
+ - spec/parser/all_spec.rb
118
+ - spec/parser/alternation_spec.rb
119
+ - spec/parser/anchors_spec.rb
120
+ - spec/parser/conditionals_spec.rb
121
+ - spec/parser/errors_spec.rb
122
+ - spec/parser/escapes_spec.rb
123
+ - spec/parser/free_space_spec.rb
124
+ - spec/parser/groups_spec.rb
125
+ - spec/parser/keep_spec.rb
126
+ - spec/parser/posix_classes_spec.rb
127
+ - spec/parser/properties_spec.rb
128
+ - spec/parser/quantifiers_spec.rb
129
+ - spec/parser/refcalls_spec.rb
130
+ - spec/parser/set/intersections_spec.rb
131
+ - spec/parser/set/ranges_spec.rb
132
+ - spec/parser/sets_spec.rb
133
+ - spec/parser/types_spec.rb
134
+ - spec/scanner/all_spec.rb
135
+ - spec/scanner/anchors_spec.rb
136
+ - spec/scanner/conditionals_spec.rb
137
+ - spec/scanner/errors_spec.rb
138
+ - spec/scanner/escapes_spec.rb
139
+ - spec/scanner/free_space_spec.rb
140
+ - spec/scanner/groups_spec.rb
141
+ - spec/scanner/keep_spec.rb
142
+ - spec/scanner/literals_spec.rb
143
+ - spec/scanner/meta_spec.rb
144
+ - spec/scanner/properties_spec.rb
145
+ - spec/scanner/quantifiers_spec.rb
146
+ - spec/scanner/refcalls_spec.rb
147
+ - spec/scanner/sets_spec.rb
148
+ - spec/scanner/types_spec.rb
149
+ - spec/spec_helper.rb
150
+ - spec/support/runner.rb
151
+ - spec/support/shared_examples.rb
152
+ - spec/support/warning_extractor.rb
153
+ - spec/syntax/syntax_spec.rb
154
+ - spec/syntax/syntax_token_map_spec.rb
155
+ - spec/syntax/versions/1.8.6_spec.rb
156
+ - spec/syntax/versions/1.9.1_spec.rb
157
+ - spec/syntax/versions/1.9.3_spec.rb
158
+ - spec/syntax/versions/2.0.0_spec.rb
159
+ - spec/syntax/versions/2.2.0_spec.rb
160
+ - spec/syntax/versions/aliases_spec.rb
161
+ - spec/token/token_spec.rb
162
+ homepage: https://github.com/ammar/regexp_parser
159
163
  licenses:
160
164
  - MIT
161
165
  metadata:
@@ -177,78 +181,75 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
181
  - !ruby/object:Gem::Version
178
182
  version: '0'
179
183
  requirements: []
180
- rubyforge_project:
181
- rubygems_version: 2.7.6
184
+ rubygems_version: 3.0.3
182
185
  signing_key:
183
186
  specification_version: 4
184
187
  summary: Scanner, lexer, parser for ruby's regular expressions
185
188
  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
189
+ - spec/token/token_spec.rb
190
+ - spec/spec_helper.rb
191
+ - spec/lexer/escapes_spec.rb
192
+ - spec/lexer/keep_spec.rb
193
+ - spec/lexer/all_spec.rb
194
+ - spec/lexer/conditionals_spec.rb
195
+ - spec/lexer/nesting_spec.rb
196
+ - spec/lexer/refcalls_spec.rb
197
+ - spec/lexer/literals_spec.rb
198
+ - spec/parser/escapes_spec.rb
199
+ - spec/parser/properties_spec.rb
200
+ - spec/parser/sets_spec.rb
201
+ - spec/parser/free_space_spec.rb
202
+ - spec/parser/keep_spec.rb
203
+ - spec/parser/all_spec.rb
204
+ - spec/parser/conditionals_spec.rb
205
+ - spec/parser/types_spec.rb
206
+ - spec/parser/anchors_spec.rb
207
+ - spec/parser/alternation_spec.rb
208
+ - spec/parser/posix_classes_spec.rb
209
+ - spec/parser/set/ranges_spec.rb
210
+ - spec/parser/set/intersections_spec.rb
211
+ - spec/parser/errors_spec.rb
212
+ - spec/parser/refcalls_spec.rb
213
+ - spec/parser/groups_spec.rb
214
+ - spec/parser/quantifiers_spec.rb
215
+ - spec/support/warning_extractor.rb
216
+ - spec/support/shared_examples.rb
217
+ - spec/support/runner.rb
218
+ - spec/expression/subexpression_spec.rb
219
+ - spec/expression/methods/match_spec.rb
220
+ - spec/expression/methods/match_length_spec.rb
221
+ - spec/expression/methods/traverse_spec.rb
222
+ - spec/expression/methods/strfregexp_spec.rb
223
+ - spec/expression/methods/tests_spec.rb
224
+ - spec/expression/free_space_spec.rb
225
+ - spec/expression/options_spec.rb
226
+ - spec/expression/to_s_spec.rb
227
+ - spec/expression/root_spec.rb
228
+ - spec/expression/sequence_spec.rb
229
+ - spec/expression/clone_spec.rb
230
+ - spec/expression/to_h_spec.rb
231
+ - spec/expression/conditional_spec.rb
232
+ - spec/expression/base_spec.rb
233
+ - spec/syntax/syntax_spec.rb
234
+ - spec/syntax/syntax_token_map_spec.rb
235
+ - spec/syntax/versions/1.9.3_spec.rb
236
+ - spec/syntax/versions/2.2.0_spec.rb
237
+ - spec/syntax/versions/1.9.1_spec.rb
238
+ - spec/syntax/versions/2.0.0_spec.rb
239
+ - spec/syntax/versions/1.8.6_spec.rb
240
+ - spec/syntax/versions/aliases_spec.rb
241
+ - spec/scanner/escapes_spec.rb
242
+ - spec/scanner/properties_spec.rb
243
+ - spec/scanner/sets_spec.rb
244
+ - spec/scanner/free_space_spec.rb
245
+ - spec/scanner/keep_spec.rb
246
+ - spec/scanner/all_spec.rb
247
+ - spec/scanner/conditionals_spec.rb
248
+ - spec/scanner/types_spec.rb
249
+ - spec/scanner/anchors_spec.rb
250
+ - spec/scanner/meta_spec.rb
251
+ - spec/scanner/errors_spec.rb
252
+ - spec/scanner/refcalls_spec.rb
253
+ - spec/scanner/groups_spec.rb
254
+ - spec/scanner/literals_spec.rb
255
+ - spec/scanner/quantifiers_spec.rb