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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/History.rdoc +14 -0
- data/Manifest.txt +2 -0
- data/README.rdoc +2 -1
- data/Rakefile +13 -8
- data/lib/ruby20_parser.rb +1 -1
- data/lib/ruby21_parser.rb +1 -1
- data/lib/ruby22_parser.rb +1 -1
- data/lib/ruby23_parser.rb +1 -1
- data/lib/ruby24_parser.rb +1 -1
- data/lib/ruby25_parser.rb +1 -1
- data/lib/ruby26_parser.rb +1 -1
- data/lib/ruby27_parser.rb +1 -1
- data/lib/ruby30_parser.rb +1 -1
- data/lib/ruby31_parser.rb +1 -1
- data/lib/ruby32_parser.rb +13638 -0
- data/lib/ruby32_parser.y +3493 -0
- data/lib/ruby3_parser.yy +2 -0
- data/lib/ruby_parser.rb +2 -0
- data/lib/ruby_parser_extras.rb +1 -1
- data/test/test_ruby_parser.rb +14 -0
- data.tar.gz.sig +1 -1
- metadata +16 -14
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fe94228dc0622091501dfb99f5fe522983b9ac8daa618eaf50e8925ce818aae
|
4
|
+
data.tar.gz: f40651573fa4769fdb77e2bdddc1429aa7b5a02c78753bf762311fac18d37dc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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
|
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.
|
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
|
-
|
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,
|
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.
|
296
|
-
ruby_parse "2.7.
|
297
|
-
ruby_parse "3.0.
|
298
|
-
ruby_parse "3.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
data/lib/ruby21_parser.rb
CHANGED
data/lib/ruby22_parser.rb
CHANGED
data/lib/ruby23_parser.rb
CHANGED
data/lib/ruby24_parser.rb
CHANGED
data/lib/ruby25_parser.rb
CHANGED
data/lib/ruby26_parser.rb
CHANGED
data/lib/ruby27_parser.rb
CHANGED
data/lib/ruby30_parser.rb
CHANGED