ruby_parser 3.19.2 → 3.20.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 82ff82f1d9693451e0d2f740f5e7a9cbeaa31034bee66ffa61486bc0f930d60b
4
- data.tar.gz: 15d8b71b9533534ffaa4184e50f0e5a795e4a7f190bf13a55858f59b17c1ed99
3
+ metadata.gz: 1fe94228dc0622091501dfb99f5fe522983b9ac8daa618eaf50e8925ce818aae
4
+ data.tar.gz: f40651573fa4769fdb77e2bdddc1429aa7b5a02c78753bf762311fac18d37dc7
5
5
  SHA512:
6
- metadata.gz: 78332be9c05d511d05f1c47977c74390658fcc00fc412009dba172d0e53c0e698b8e28c4803c4969720f2d2d29ed3fc891be2a990618098ae0cf04d00ad28e9f
7
- data.tar.gz: 72f7e1c089bc80662ea2eb8c8056d7bb3bf84ff27224c2d450ffde94abd2fb5ba2317d1405a880bebb2c91ac34bcb7023685065f1a8b2e69f62ed8f6b0362e77
6
+ metadata.gz: 52eeaa22c91a134e7d61fd11d8ecf366b6634f80940450802460f57dcd2e1483cfdfabc455007b11c3bf468974d24c78641b0c0cd677d366070a11da7da63acc
7
+ data.tar.gz: f517db6a7e6bb364638a6aa3c81b6304d6b1b90b6e92702675b4a601badb117efdf5254ff753675274d6ed95b9db097f1ef7d82c601b7b664ae35ff76e4d6415
checksums.yaml.gz.sig CHANGED
Binary file
data/History.rdoc CHANGED
@@ -1,3 +1,17 @@
1
+ === 3.20.0 / 2023-03-04
2
+
3
+ * 1 major enhancement:
4
+
5
+ * Added tentative 3.2 support.
6
+
7
+ * 1 minor enhancement:
8
+
9
+ * Change minimum ruby version to 2.6. (want higher)
10
+
11
+ * 1 bug fix:
12
+
13
+ * Fix up compare tasks for ruby 3.2 differences.
14
+
1
15
  === 3.19.2 / 2022-12-03
2
16
 
3
17
  * 5 bug fixes:
data/Manifest.txt CHANGED
@@ -31,6 +31,8 @@ lib/ruby30_parser.rb
31
31
  lib/ruby30_parser.y
32
32
  lib/ruby31_parser.rb
33
33
  lib/ruby31_parser.y
34
+ lib/ruby32_parser.rb
35
+ lib/ruby32_parser.y
34
36
  lib/ruby3_parser.yy
35
37
  lib/ruby_lexer.rb
36
38
  lib/ruby_lexer.rex
data/README.rdoc CHANGED
@@ -68,8 +68,9 @@ To add a new version:
68
68
  * New parser should be generated from lib/ruby[3]_parser.yy.
69
69
  * Extend lib/ruby[3]_parser.yy with new class name.
70
70
  * Add new version number to V2/V3 in Rakefile for rule creation.
71
- * Add new (full) version to `ruby_parse` section of Rakefile for rake compare
71
+ * Add new `ruby_parse "x.y.z"` line to Rakefile for rake compare (line ~300).
72
72
  * Require generated parser in lib/ruby_parser.rb.
73
+ * Add new V## = ::Ruby##Parser; end to ruby_parser.rb (bottom of file).
73
74
  * Add empty TestRubyParserShared##Plus module and TestRubyParserV## to test/test_ruby_parser.rb.
74
75
  * Extend Manifest.txt with generated file names.
75
76
  * Add new version number to sexp_processor's pt_testcase.rb in all_versions
data/Rakefile CHANGED
@@ -15,7 +15,7 @@ Hoe.add_include_dirs "../../oedipus_lex/dev/lib"
15
15
  Hoe.add_include_dirs "../../ruby2ruby/dev/lib"
16
16
 
17
17
  V2 = %w[20 21 22 23 24 25 26 27]
18
- V3 = %w[30 31]
18
+ V3 = %w[30 31 32]
19
19
 
20
20
  VERS = V2 + V3
21
21
 
@@ -38,7 +38,7 @@ Hoe.spec "ruby_parser" do
38
38
 
39
39
  dependency "racc", "~> 1.5", :developer
40
40
 
41
- require_ruby_version [">= 2.1", "< 4"]
41
+ require_ruby_version [">= 2.6", "< 4"]
42
42
 
43
43
  if plugin? :perforce then # generated files
44
44
  VERS.each do |n|
@@ -186,6 +186,9 @@ def ruby_parse version
186
186
  file c_parse_y => c_tarball do
187
187
  in_compare do
188
188
  extract_glob = case
189
+ # defs/id.def
190
+ when version > "3.2" then
191
+ "{id.h,parse.y,tool/{id2token.rb,lib/vpath.rb},defs/id.def}"
189
192
  when version > "2.7" then
190
193
  "{id.h,parse.y,tool/{id2token.rb,lib/vpath.rb}}"
191
194
  else
@@ -195,7 +198,8 @@ def ruby_parse version
195
198
 
196
199
  Dir.chdir ruby_dir do
197
200
  if File.exist? "tool/id2token.rb" then
198
- sh "ruby tool/id2token.rb --path-separator=.:./ id.h parse.y | expand > ../#{parse_y}"
201
+ args = version < "3.2" ? "--path-separator=.:./ id.h" : ""
202
+ sh "ruby tool/id2token.rb #{args} parse.y | expand > ../#{parse_y}"
199
203
  else
200
204
  sh "expand parse.y > ../#{parse_y}"
201
205
  end
@@ -250,7 +254,7 @@ def ruby_parse version
250
254
  end
251
255
 
252
256
  task :realclean do
253
- rm_f Dir[c_parse_y, tarball]
257
+ rm_f Dir[c_parse_y, c_tarball]
254
258
  end
255
259
  end
256
260
 
@@ -292,10 +296,11 @@ ruby_parse "2.2.10"
292
296
  ruby_parse "2.3.8"
293
297
  ruby_parse "2.4.10"
294
298
  ruby_parse "2.5.9"
295
- ruby_parse "2.6.9"
296
- ruby_parse "2.7.5"
297
- ruby_parse "3.0.3"
298
- ruby_parse "3.1.1"
299
+ ruby_parse "2.6.10"
300
+ ruby_parse "2.7.7"
301
+ ruby_parse "3.0.5"
302
+ ruby_parse "3.1.3"
303
+ ruby_parse "3.2.1"
299
304
 
300
305
  task :debug => :isolate do
301
306
  ENV["V"] ||= VERS.last
data/lib/ruby20_parser.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.6.0
3
+ # This file is automatically generated by Racc 1.6.2
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
data/lib/ruby21_parser.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.6.0
3
+ # This file is automatically generated by Racc 1.6.2
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
data/lib/ruby22_parser.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.6.0
3
+ # This file is automatically generated by Racc 1.6.2
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
data/lib/ruby23_parser.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.6.0
3
+ # This file is automatically generated by Racc 1.6.2
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
data/lib/ruby24_parser.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.6.0
3
+ # This file is automatically generated by Racc 1.6.2
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
data/lib/ruby25_parser.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.6.0
3
+ # This file is automatically generated by Racc 1.6.2
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
data/lib/ruby26_parser.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.6.0
3
+ # This file is automatically generated by Racc 1.6.2
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
data/lib/ruby27_parser.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.6.0
3
+ # This file is automatically generated by Racc 1.6.2
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
data/lib/ruby30_parser.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.6.0
3
+ # This file is automatically generated by Racc 1.6.2
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
data/lib/ruby31_parser.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.6.0
3
+ # This file is automatically generated by Racc 1.6.2
4
4
  # from Racc grammar file "".
5
5
  #
6
6