parser 3.2.2.0 → 3.2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/parser/builders/default.rb +13 -24
- data/lib/parser/macruby.rb +3 -1
- data/lib/parser/ruby18.rb +3 -1
- data/lib/parser/ruby19.rb +3 -1
- data/lib/parser/ruby20.rb +3 -1
- data/lib/parser/ruby21.rb +3 -1
- data/lib/parser/ruby22.rb +3 -1
- data/lib/parser/ruby23.rb +3 -1
- data/lib/parser/ruby24.rb +3 -1
- data/lib/parser/ruby25.rb +3 -1
- data/lib/parser/ruby26.rb +3 -1
- data/lib/parser/ruby27.rb +3 -1
- data/lib/parser/ruby28.rb +8047 -0
- data/lib/parser/ruby30.rb +3 -1
- data/lib/parser/ruby31.rb +3 -1
- data/lib/parser/ruby32.rb +3 -1
- data/lib/parser/ruby33.rb +3 -1
- data/lib/parser/rubymotion.rb +3 -1
- data/lib/parser/version.rb +1 -1
- data/parser.gemspec +1 -1
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7abfac0733b7b27d6cdcdbc658b435ab670f967b8a0f833b556adca39c20576b
|
4
|
+
data.tar.gz: 7502da81ba926599b739b43bba1d946407b616a5b18f27ca17e205fdaaafa8b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 849349f3b5eddff404a8af55918e1cafc8737743cb83fe45f69b2353e5be9dc95f9f064bce8d4fba80e1a2d31712060c6abfec5a5eea622bf48aae80d96967f6
|
7
|
+
data.tar.gz: 28d98f09acbaffb2c26dab8c35ed806f1d510ea1bee9e9d14adc71d6797e190f950fee817339fc4aa1b9ae61704cd30a923f837fd1438cda8804b4a5970c0f86
|
@@ -538,34 +538,23 @@ module Parser
|
|
538
538
|
end
|
539
539
|
|
540
540
|
def associate(begin_t, pairs, end_t)
|
541
|
-
|
542
|
-
(i + 1).upto(pairs.length - 1) do |j|
|
543
|
-
pair_i = pairs[i]
|
544
|
-
pair_j = pairs[j]
|
541
|
+
key_set = Set.new
|
545
542
|
|
546
|
-
|
543
|
+
pairs.each do |pair|
|
544
|
+
next unless pair.type.eql?(:pair)
|
547
545
|
|
548
|
-
|
549
|
-
key2, = *pair_j
|
546
|
+
key, = *pair
|
550
547
|
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
do_warn = true
|
559
|
-
end
|
560
|
-
when :rational, :complex, :regexp
|
561
|
-
if @parser.version >= 31 && key1 == key2
|
562
|
-
do_warn = true
|
563
|
-
end
|
564
|
-
end
|
548
|
+
case key.type
|
549
|
+
when :sym, :str, :int, :float
|
550
|
+
when :rational, :complex, :regexp
|
551
|
+
next unless @parser.version >= 31
|
552
|
+
else
|
553
|
+
next
|
554
|
+
end
|
565
555
|
|
566
|
-
|
567
|
-
|
568
|
-
end
|
556
|
+
unless key_set.add?(key)
|
557
|
+
diagnostic :warning, :duplicate_hash_key, nil, key.loc.expression
|
569
558
|
end
|
570
559
|
end
|
571
560
|
|
data/lib/parser/macruby.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
|
2
2
|
#
|
3
3
|
# DO NOT MODIFY!!!!
|
4
|
-
# This file is automatically generated by Racc 1.
|
4
|
+
# This file is automatically generated by Racc 1.7.0
|
5
5
|
# from Racc grammar file "".
|
6
6
|
#
|
7
7
|
|
@@ -6256,6 +6256,7 @@ Racc_arg = [
|
|
6256
6256
|
racc_shift_n,
|
6257
6257
|
racc_reduce_n,
|
6258
6258
|
racc_use_result_var ]
|
6259
|
+
Ractor.make_shareable(Racc_arg) if defined?(Ractor)
|
6259
6260
|
|
6260
6261
|
Racc_token_to_s_table = [
|
6261
6262
|
"$end",
|
@@ -6553,6 +6554,7 @@ Racc_token_to_s_table = [
|
|
6553
6554
|
"restarg_mark",
|
6554
6555
|
"blkarg_mark",
|
6555
6556
|
"assoc" ]
|
6557
|
+
Ractor.make_shareable(Racc_token_to_s_table) if defined?(Ractor)
|
6556
6558
|
|
6557
6559
|
Racc_debug_parser = false
|
6558
6560
|
|
data/lib/parser/ruby18.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
|
2
2
|
#
|
3
3
|
# DO NOT MODIFY!!!!
|
4
|
-
# This file is automatically generated by Racc 1.
|
4
|
+
# This file is automatically generated by Racc 1.7.0
|
5
5
|
# from Racc grammar file "".
|
6
6
|
#
|
7
7
|
|
@@ -6272,6 +6272,7 @@ Racc_arg = [
|
|
6272
6272
|
racc_shift_n,
|
6273
6273
|
racc_reduce_n,
|
6274
6274
|
racc_use_result_var ]
|
6275
|
+
Ractor.make_shareable(Racc_arg) if defined?(Ractor)
|
6275
6276
|
|
6276
6277
|
Racc_token_to_s_table = [
|
6277
6278
|
"$end",
|
@@ -6539,6 +6540,7 @@ Racc_token_to_s_table = [
|
|
6539
6540
|
"restarg_mark",
|
6540
6541
|
"blkarg_mark",
|
6541
6542
|
"assoc" ]
|
6543
|
+
Ractor.make_shareable(Racc_token_to_s_table) if defined?(Ractor)
|
6542
6544
|
|
6543
6545
|
Racc_debug_parser = false
|
6544
6546
|
|
data/lib/parser/ruby19.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
|
2
2
|
#
|
3
3
|
# DO NOT MODIFY!!!!
|
4
|
-
# This file is automatically generated by Racc 1.
|
4
|
+
# This file is automatically generated by Racc 1.7.0
|
5
5
|
# from Racc grammar file "".
|
6
6
|
#
|
7
7
|
|
@@ -6215,6 +6215,7 @@ Racc_arg = [
|
|
6215
6215
|
racc_shift_n,
|
6216
6216
|
racc_reduce_n,
|
6217
6217
|
racc_use_result_var ]
|
6218
|
+
Ractor.make_shareable(Racc_arg) if defined?(Ractor)
|
6218
6219
|
|
6219
6220
|
Racc_token_to_s_table = [
|
6220
6221
|
"$end",
|
@@ -6511,6 +6512,7 @@ Racc_token_to_s_table = [
|
|
6511
6512
|
"restarg_mark",
|
6512
6513
|
"blkarg_mark",
|
6513
6514
|
"assoc" ]
|
6515
|
+
Ractor.make_shareable(Racc_token_to_s_table) if defined?(Ractor)
|
6514
6516
|
|
6515
6517
|
Racc_debug_parser = false
|
6516
6518
|
|
data/lib/parser/ruby20.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
|
2
2
|
#
|
3
3
|
# DO NOT MODIFY!!!!
|
4
|
-
# This file is automatically generated by Racc 1.
|
4
|
+
# This file is automatically generated by Racc 1.7.0
|
5
5
|
# from Racc grammar file "".
|
6
6
|
#
|
7
7
|
|
@@ -6630,6 +6630,7 @@ Racc_arg = [
|
|
6630
6630
|
racc_shift_n,
|
6631
6631
|
racc_reduce_n,
|
6632
6632
|
racc_use_result_var ]
|
6633
|
+
Ractor.make_shareable(Racc_arg) if defined?(Ractor)
|
6633
6634
|
|
6634
6635
|
Racc_token_to_s_table = [
|
6635
6636
|
"$end",
|
@@ -6949,6 +6950,7 @@ Racc_token_to_s_table = [
|
|
6949
6950
|
"restarg_mark",
|
6950
6951
|
"blkarg_mark",
|
6951
6952
|
"assoc" ]
|
6953
|
+
Ractor.make_shareable(Racc_token_to_s_table) if defined?(Ractor)
|
6952
6954
|
|
6953
6955
|
Racc_debug_parser = false
|
6954
6956
|
|
data/lib/parser/ruby21.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
|
2
2
|
#
|
3
3
|
# DO NOT MODIFY!!!!
|
4
|
-
# This file is automatically generated by Racc 1.
|
4
|
+
# This file is automatically generated by Racc 1.7.0
|
5
5
|
# from Racc grammar file "".
|
6
6
|
#
|
7
7
|
|
@@ -6583,6 +6583,7 @@ Racc_arg = [
|
|
6583
6583
|
racc_shift_n,
|
6584
6584
|
racc_reduce_n,
|
6585
6585
|
racc_use_result_var ]
|
6586
|
+
Ractor.make_shareable(Racc_arg) if defined?(Ractor)
|
6586
6587
|
|
6587
6588
|
Racc_token_to_s_table = [
|
6588
6589
|
"$end",
|
@@ -6909,6 +6910,7 @@ Racc_token_to_s_table = [
|
|
6909
6910
|
"restarg_mark",
|
6910
6911
|
"blkarg_mark",
|
6911
6912
|
"assoc" ]
|
6913
|
+
Ractor.make_shareable(Racc_token_to_s_table) if defined?(Ractor)
|
6912
6914
|
|
6913
6915
|
Racc_debug_parser = false
|
6914
6916
|
|
data/lib/parser/ruby22.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
|
2
2
|
#
|
3
3
|
# DO NOT MODIFY!!!!
|
4
|
-
# This file is automatically generated by Racc 1.
|
4
|
+
# This file is automatically generated by Racc 1.7.0
|
5
5
|
# from Racc grammar file "".
|
6
6
|
#
|
7
7
|
|
@@ -6668,6 +6668,7 @@ Racc_arg = [
|
|
6668
6668
|
racc_shift_n,
|
6669
6669
|
racc_reduce_n,
|
6670
6670
|
racc_use_result_var ]
|
6671
|
+
Ractor.make_shareable(Racc_arg) if defined?(Ractor)
|
6671
6672
|
|
6672
6673
|
Racc_token_to_s_table = [
|
6673
6674
|
"$end",
|
@@ -6996,6 +6997,7 @@ Racc_token_to_s_table = [
|
|
6996
6997
|
"restarg_mark",
|
6997
6998
|
"blkarg_mark",
|
6998
6999
|
"assoc" ]
|
7000
|
+
Ractor.make_shareable(Racc_token_to_s_table) if defined?(Ractor)
|
6999
7001
|
|
7000
7002
|
Racc_debug_parser = false
|
7001
7003
|
|
data/lib/parser/ruby23.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
|
2
2
|
#
|
3
3
|
# DO NOT MODIFY!!!!
|
4
|
-
# This file is automatically generated by Racc 1.
|
4
|
+
# This file is automatically generated by Racc 1.7.0
|
5
5
|
# from Racc grammar file "".
|
6
6
|
#
|
7
7
|
|
@@ -6678,6 +6678,7 @@ Racc_arg = [
|
|
6678
6678
|
racc_shift_n,
|
6679
6679
|
racc_reduce_n,
|
6680
6680
|
racc_use_result_var ]
|
6681
|
+
Ractor.make_shareable(Racc_arg) if defined?(Ractor)
|
6681
6682
|
|
6682
6683
|
Racc_token_to_s_table = [
|
6683
6684
|
"$end",
|
@@ -7008,6 +7009,7 @@ Racc_token_to_s_table = [
|
|
7008
7009
|
"restarg_mark",
|
7009
7010
|
"blkarg_mark",
|
7010
7011
|
"assoc" ]
|
7012
|
+
Ractor.make_shareable(Racc_token_to_s_table) if defined?(Ractor)
|
7011
7013
|
|
7012
7014
|
Racc_debug_parser = false
|
7013
7015
|
|
data/lib/parser/ruby24.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
|
2
2
|
#
|
3
3
|
# DO NOT MODIFY!!!!
|
4
|
-
# This file is automatically generated by Racc 1.
|
4
|
+
# This file is automatically generated by Racc 1.7.0
|
5
5
|
# from Racc grammar file "".
|
6
6
|
#
|
7
7
|
|
@@ -6758,6 +6758,7 @@ Racc_arg = [
|
|
6758
6758
|
racc_shift_n,
|
6759
6759
|
racc_reduce_n,
|
6760
6760
|
racc_use_result_var ]
|
6761
|
+
Ractor.make_shareable(Racc_arg) if defined?(Ractor)
|
6761
6762
|
|
6762
6763
|
Racc_token_to_s_table = [
|
6763
6764
|
"$end",
|
@@ -7094,6 +7095,7 @@ Racc_token_to_s_table = [
|
|
7094
7095
|
"restarg_mark",
|
7095
7096
|
"blkarg_mark",
|
7096
7097
|
"assoc" ]
|
7098
|
+
Ractor.make_shareable(Racc_token_to_s_table) if defined?(Ractor)
|
7097
7099
|
|
7098
7100
|
Racc_debug_parser = false
|
7099
7101
|
|
data/lib/parser/ruby25.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
|
2
2
|
#
|
3
3
|
# DO NOT MODIFY!!!!
|
4
|
-
# This file is automatically generated by Racc 1.
|
4
|
+
# This file is automatically generated by Racc 1.7.0
|
5
5
|
# from Racc grammar file "".
|
6
6
|
#
|
7
7
|
|
@@ -6693,6 +6693,7 @@ Racc_arg = [
|
|
6693
6693
|
racc_shift_n,
|
6694
6694
|
racc_reduce_n,
|
6695
6695
|
racc_use_result_var ]
|
6696
|
+
Ractor.make_shareable(Racc_arg) if defined?(Ractor)
|
6696
6697
|
|
6697
6698
|
Racc_token_to_s_table = [
|
6698
6699
|
"$end",
|
@@ -7029,6 +7030,7 @@ Racc_token_to_s_table = [
|
|
7029
7030
|
"restarg_mark",
|
7030
7031
|
"blkarg_mark",
|
7031
7032
|
"assoc" ]
|
7033
|
+
Ractor.make_shareable(Racc_token_to_s_table) if defined?(Ractor)
|
7032
7034
|
|
7033
7035
|
Racc_debug_parser = false
|
7034
7036
|
|
data/lib/parser/ruby26.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
|
2
2
|
#
|
3
3
|
# DO NOT MODIFY!!!!
|
4
|
-
# This file is automatically generated by Racc 1.
|
4
|
+
# This file is automatically generated by Racc 1.7.0
|
5
5
|
# from Racc grammar file "".
|
6
6
|
#
|
7
7
|
|
@@ -6652,6 +6652,7 @@ Racc_arg = [
|
|
6652
6652
|
racc_shift_n,
|
6653
6653
|
racc_reduce_n,
|
6654
6654
|
racc_use_result_var ]
|
6655
|
+
Ractor.make_shareable(Racc_arg) if defined?(Ractor)
|
6655
6656
|
|
6656
6657
|
Racc_token_to_s_table = [
|
6657
6658
|
"$end",
|
@@ -6989,6 +6990,7 @@ Racc_token_to_s_table = [
|
|
6989
6990
|
"restarg_mark",
|
6990
6991
|
"blkarg_mark",
|
6991
6992
|
"assoc" ]
|
6993
|
+
Ractor.make_shareable(Racc_token_to_s_table) if defined?(Ractor)
|
6992
6994
|
|
6993
6995
|
Racc_debug_parser = false
|
6994
6996
|
|
data/lib/parser/ruby27.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
|
2
2
|
#
|
3
3
|
# DO NOT MODIFY!!!!
|
4
|
-
# This file is automatically generated by Racc 1.
|
4
|
+
# This file is automatically generated by Racc 1.7.0
|
5
5
|
# from Racc grammar file "".
|
6
6
|
#
|
7
7
|
|
@@ -7519,6 +7519,7 @@ Racc_arg = [
|
|
7519
7519
|
racc_shift_n,
|
7520
7520
|
racc_reduce_n,
|
7521
7521
|
racc_use_result_var ]
|
7522
|
+
Ractor.make_shareable(Racc_arg) if defined?(Ractor)
|
7522
7523
|
|
7523
7524
|
Racc_token_to_s_table = [
|
7524
7525
|
"$end",
|
@@ -7896,6 +7897,7 @@ Racc_token_to_s_table = [
|
|
7896
7897
|
"restarg_mark",
|
7897
7898
|
"blkarg_mark",
|
7898
7899
|
"assoc" ]
|
7900
|
+
Ractor.make_shareable(Racc_token_to_s_table) if defined?(Ractor)
|
7899
7901
|
|
7900
7902
|
Racc_debug_parser = false
|
7901
7903
|
|