ruby_parser 3.20.3 → 3.21.1
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 +38 -0
- data/Manifest.txt +14 -24
- data/README.rdoc +3 -3
- data/Rakefile +113 -115
- data/compare/normalize.rb +2 -0
- data/lib/ruby_lexer.rb +9 -16
- data/lib/ruby_lexer.rex.rb +1 -2
- data/lib/ruby_parser.rb +15 -13
- data/lib/{ruby_parser.yy → ruby_parser2.yy} +3 -10
- data/lib/{ruby20_parser.rb → ruby_parser20.rb} +9 -12
- data/lib/{ruby21_parser.rb → ruby_parser21.rb} +9 -12
- data/lib/{ruby22_parser.rb → ruby_parser22.rb} +9 -12
- data/lib/{ruby23_parser.rb → ruby_parser23.rb} +9 -12
- data/lib/{ruby24_parser.rb → ruby_parser24.rb} +9 -12
- data/lib/{ruby25_parser.rb → ruby_parser25.rb} +9 -12
- data/lib/{ruby26_parser.rb → ruby_parser26.rb} +9 -12
- data/lib/{ruby27_parser.rb → ruby_parser27.rb} +9 -12
- data/lib/{ruby3_parser.yy → ruby_parser3.yy} +7 -33
- data/lib/{ruby30_parser.rb → ruby_parser30.rb} +11 -35
- data/lib/{ruby31_parser.rb → ruby_parser31.rb} +11 -35
- data/lib/{ruby32_parser.rb → ruby_parser32.rb} +11 -35
- data/lib/ruby_parser33.rb +13577 -0
- data/lib/ruby_parser_extras.rb +35 -17
- data/test/test_ruby_lexer.rb +5 -5
- data/test/test_ruby_parser.rb +22 -20
- data.tar.gz.sig +0 -0
- metadata +41 -51
- metadata.gz.sig +0 -0
- data/lib/ruby20_parser.y +0 -2707
- data/lib/ruby21_parser.y +0 -2724
- data/lib/ruby22_parser.y +0 -2735
- data/lib/ruby23_parser.y +0 -2737
- data/lib/ruby24_parser.y +0 -2745
- data/lib/ruby25_parser.y +0 -2745
- data/lib/ruby26_parser.y +0 -2760
- data/lib/ruby27_parser.y +0 -3360
- data/lib/ruby30_parser.y +0 -3508
- data/lib/ruby31_parser.y +0 -3542
- data/lib/ruby32_parser.y +0 -3543
@@ -1,7 +1,9 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
#
|
2
4
|
# DO NOT MODIFY!!!!
|
3
|
-
# This file is automatically generated by Racc 1.
|
4
|
-
# from Racc grammar file "".
|
5
|
+
# This file is automatically generated by Racc 1.8.0
|
6
|
+
# from Racc grammar file "stdin".
|
5
7
|
#
|
6
8
|
|
7
9
|
require 'racc/parser.rb'
|
@@ -6926,6 +6928,7 @@ Racc_arg = [
|
|
6926
6928
|
racc_shift_n,
|
6927
6929
|
racc_reduce_n,
|
6928
6930
|
racc_use_result_var ]
|
6931
|
+
Ractor.make_shareable(Racc_arg) if defined?(Ractor)
|
6929
6932
|
|
6930
6933
|
Racc_token_to_s_table = [
|
6931
6934
|
"$end",
|
@@ -7285,6 +7288,7 @@ Racc_token_to_s_table = [
|
|
7285
7288
|
"blkarg_mark",
|
7286
7289
|
"@37",
|
7287
7290
|
"assoc" ]
|
7291
|
+
Ractor.make_shareable(Racc_token_to_s_table) if defined?(Ractor)
|
7288
7292
|
|
7289
7293
|
Racc_debug_parser = false
|
7290
7294
|
|
@@ -9087,7 +9091,6 @@ end
|
|
9087
9091
|
def _reduce_325(val, _values, result)
|
9088
9092
|
result = new_class val
|
9089
9093
|
self.env.unextend
|
9090
|
-
self.lexer.ignore_body_comments
|
9091
9094
|
|
9092
9095
|
result
|
9093
9096
|
end
|
@@ -9110,7 +9113,6 @@ end
|
|
9110
9113
|
def _reduce_328(val, _values, result)
|
9111
9114
|
result = new_sclass val
|
9112
9115
|
self.env.unextend
|
9113
|
-
self.lexer.ignore_body_comments
|
9114
9116
|
|
9115
9117
|
result
|
9116
9118
|
end
|
@@ -9127,7 +9129,6 @@ end
|
|
9127
9129
|
def _reduce_330(val, _values, result)
|
9128
9130
|
result = new_module val
|
9129
9131
|
self.env.unextend
|
9130
|
-
self.lexer.ignore_body_comments
|
9131
9132
|
|
9132
9133
|
result
|
9133
9134
|
end
|
@@ -9151,8 +9152,6 @@ def _reduce_332(val, _values, result)
|
|
9151
9152
|
self.env.unextend
|
9152
9153
|
self.in_def = in_def
|
9153
9154
|
|
9154
|
-
self.lexer.ignore_body_comments
|
9155
|
-
|
9156
9155
|
result
|
9157
9156
|
end
|
9158
9157
|
|
@@ -9196,8 +9195,6 @@ def _reduce_335(val, _values, result)
|
|
9196
9195
|
|
9197
9196
|
# TODO: restore cur_arg ? what's cur_arg?
|
9198
9197
|
|
9199
|
-
self.lexer.ignore_body_comments
|
9200
|
-
|
9201
9198
|
result
|
9202
9199
|
end
|
9203
9200
|
|
@@ -9250,19 +9247,19 @@ end
|
|
9250
9247
|
# reduce 347 omitted
|
9251
9248
|
|
9252
9249
|
def _reduce_348(val, _values, result)
|
9253
|
-
|
9250
|
+
result << self.lexer.comment
|
9254
9251
|
|
9255
9252
|
result
|
9256
9253
|
end
|
9257
9254
|
|
9258
9255
|
def _reduce_349(val, _values, result)
|
9259
|
-
|
9256
|
+
result << self.lexer.comment
|
9260
9257
|
|
9261
9258
|
result
|
9262
9259
|
end
|
9263
9260
|
|
9264
9261
|
def _reduce_350(val, _values, result)
|
9265
|
-
|
9262
|
+
result << self.lexer.comment
|
9266
9263
|
|
9267
9264
|
result
|
9268
9265
|
end
|
@@ -1,7 +1,9 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
#
|
2
4
|
# DO NOT MODIFY!!!!
|
3
|
-
# This file is automatically generated by Racc 1.
|
4
|
-
# from Racc grammar file "".
|
5
|
+
# This file is automatically generated by Racc 1.8.0
|
6
|
+
# from Racc grammar file "stdin".
|
5
7
|
#
|
6
8
|
|
7
9
|
require 'racc/parser.rb'
|
@@ -6927,6 +6929,7 @@ Racc_arg = [
|
|
6927
6929
|
racc_shift_n,
|
6928
6930
|
racc_reduce_n,
|
6929
6931
|
racc_use_result_var ]
|
6932
|
+
Ractor.make_shareable(Racc_arg) if defined?(Ractor)
|
6930
6933
|
|
6931
6934
|
Racc_token_to_s_table = [
|
6932
6935
|
"$end",
|
@@ -7291,6 +7294,7 @@ Racc_token_to_s_table = [
|
|
7291
7294
|
"blkarg_mark",
|
7292
7295
|
"@37",
|
7293
7296
|
"assoc" ]
|
7297
|
+
Ractor.make_shareable(Racc_token_to_s_table) if defined?(Ractor)
|
7294
7298
|
|
7295
7299
|
Racc_debug_parser = false
|
7296
7300
|
|
@@ -9089,7 +9093,6 @@ end
|
|
9089
9093
|
def _reduce_325(val, _values, result)
|
9090
9094
|
result = new_class val
|
9091
9095
|
self.env.unextend
|
9092
|
-
self.lexer.ignore_body_comments
|
9093
9096
|
|
9094
9097
|
result
|
9095
9098
|
end
|
@@ -9112,7 +9115,6 @@ end
|
|
9112
9115
|
def _reduce_328(val, _values, result)
|
9113
9116
|
result = new_sclass val
|
9114
9117
|
self.env.unextend
|
9115
|
-
self.lexer.ignore_body_comments
|
9116
9118
|
|
9117
9119
|
result
|
9118
9120
|
end
|
@@ -9129,7 +9131,6 @@ end
|
|
9129
9131
|
def _reduce_330(val, _values, result)
|
9130
9132
|
result = new_module val
|
9131
9133
|
self.env.unextend
|
9132
|
-
self.lexer.ignore_body_comments
|
9133
9134
|
|
9134
9135
|
result
|
9135
9136
|
end
|
@@ -9153,8 +9154,6 @@ def _reduce_332(val, _values, result)
|
|
9153
9154
|
self.env.unextend
|
9154
9155
|
self.in_def = in_def
|
9155
9156
|
|
9156
|
-
self.lexer.ignore_body_comments
|
9157
|
-
|
9158
9157
|
result
|
9159
9158
|
end
|
9160
9159
|
|
@@ -9198,8 +9197,6 @@ def _reduce_335(val, _values, result)
|
|
9198
9197
|
|
9199
9198
|
# TODO: restore cur_arg ? what's cur_arg?
|
9200
9199
|
|
9201
|
-
self.lexer.ignore_body_comments
|
9202
|
-
|
9203
9200
|
result
|
9204
9201
|
end
|
9205
9202
|
|
@@ -9252,19 +9249,19 @@ end
|
|
9252
9249
|
# reduce 347 omitted
|
9253
9250
|
|
9254
9251
|
def _reduce_348(val, _values, result)
|
9255
|
-
|
9252
|
+
result << self.lexer.comment
|
9256
9253
|
|
9257
9254
|
result
|
9258
9255
|
end
|
9259
9256
|
|
9260
9257
|
def _reduce_349(val, _values, result)
|
9261
|
-
|
9258
|
+
result << self.lexer.comment
|
9262
9259
|
|
9263
9260
|
result
|
9264
9261
|
end
|
9265
9262
|
|
9266
9263
|
def _reduce_350(val, _values, result)
|
9267
|
-
|
9264
|
+
result << self.lexer.comment
|
9268
9265
|
|
9269
9266
|
result
|
9270
9267
|
end
|
@@ -1,7 +1,9 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
#
|
2
4
|
# DO NOT MODIFY!!!!
|
3
|
-
# This file is automatically generated by Racc 1.
|
4
|
-
# from Racc grammar file "".
|
5
|
+
# This file is automatically generated by Racc 1.8.0
|
6
|
+
# from Racc grammar file "stdin".
|
5
7
|
#
|
6
8
|
|
7
9
|
require 'racc/parser.rb'
|
@@ -7054,6 +7056,7 @@ Racc_arg = [
|
|
7054
7056
|
racc_shift_n,
|
7055
7057
|
racc_reduce_n,
|
7056
7058
|
racc_use_result_var ]
|
7059
|
+
Ractor.make_shareable(Racc_arg) if defined?(Ractor)
|
7057
7060
|
|
7058
7061
|
Racc_token_to_s_table = [
|
7059
7062
|
"$end",
|
@@ -7420,6 +7423,7 @@ Racc_token_to_s_table = [
|
|
7420
7423
|
"blkarg_mark",
|
7421
7424
|
"@37",
|
7422
7425
|
"assoc" ]
|
7426
|
+
Ractor.make_shareable(Racc_token_to_s_table) if defined?(Ractor)
|
7423
7427
|
|
7424
7428
|
Racc_debug_parser = false
|
7425
7429
|
|
@@ -9218,7 +9222,6 @@ end
|
|
9218
9222
|
def _reduce_325(val, _values, result)
|
9219
9223
|
result = new_class val
|
9220
9224
|
self.env.unextend
|
9221
|
-
self.lexer.ignore_body_comments
|
9222
9225
|
|
9223
9226
|
result
|
9224
9227
|
end
|
@@ -9241,7 +9244,6 @@ end
|
|
9241
9244
|
def _reduce_328(val, _values, result)
|
9242
9245
|
result = new_sclass val
|
9243
9246
|
self.env.unextend
|
9244
|
-
self.lexer.ignore_body_comments
|
9245
9247
|
|
9246
9248
|
result
|
9247
9249
|
end
|
@@ -9258,7 +9260,6 @@ end
|
|
9258
9260
|
def _reduce_330(val, _values, result)
|
9259
9261
|
result = new_module val
|
9260
9262
|
self.env.unextend
|
9261
|
-
self.lexer.ignore_body_comments
|
9262
9263
|
|
9263
9264
|
result
|
9264
9265
|
end
|
@@ -9282,8 +9283,6 @@ def _reduce_332(val, _values, result)
|
|
9282
9283
|
self.env.unextend
|
9283
9284
|
self.in_def = in_def
|
9284
9285
|
|
9285
|
-
self.lexer.ignore_body_comments
|
9286
|
-
|
9287
9286
|
result
|
9288
9287
|
end
|
9289
9288
|
|
@@ -9327,8 +9326,6 @@ def _reduce_335(val, _values, result)
|
|
9327
9326
|
|
9328
9327
|
# TODO: restore cur_arg ? what's cur_arg?
|
9329
9328
|
|
9330
|
-
self.lexer.ignore_body_comments
|
9331
|
-
|
9332
9329
|
result
|
9333
9330
|
end
|
9334
9331
|
|
@@ -9381,19 +9378,19 @@ end
|
|
9381
9378
|
# reduce 347 omitted
|
9382
9379
|
|
9383
9380
|
def _reduce_348(val, _values, result)
|
9384
|
-
|
9381
|
+
result << self.lexer.comment
|
9385
9382
|
|
9386
9383
|
result
|
9387
9384
|
end
|
9388
9385
|
|
9389
9386
|
def _reduce_349(val, _values, result)
|
9390
|
-
|
9387
|
+
result << self.lexer.comment
|
9391
9388
|
|
9392
9389
|
result
|
9393
9390
|
end
|
9394
9391
|
|
9395
9392
|
def _reduce_350(val, _values, result)
|
9396
|
-
|
9393
|
+
result << self.lexer.comment
|
9397
9394
|
|
9398
9395
|
result
|
9399
9396
|
end
|
@@ -1,7 +1,9 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
#
|
2
4
|
# DO NOT MODIFY!!!!
|
3
|
-
# This file is automatically generated by Racc 1.
|
4
|
-
# from Racc grammar file "".
|
5
|
+
# This file is automatically generated by Racc 1.8.0
|
6
|
+
# from Racc grammar file "stdin".
|
5
7
|
#
|
6
8
|
|
7
9
|
require 'racc/parser.rb'
|
@@ -7092,6 +7094,7 @@ Racc_arg = [
|
|
7092
7094
|
racc_shift_n,
|
7093
7095
|
racc_reduce_n,
|
7094
7096
|
racc_use_result_var ]
|
7097
|
+
Ractor.make_shareable(Racc_arg) if defined?(Ractor)
|
7095
7098
|
|
7096
7099
|
Racc_token_to_s_table = [
|
7097
7100
|
"$end",
|
@@ -7459,6 +7462,7 @@ Racc_token_to_s_table = [
|
|
7459
7462
|
"blkarg_mark",
|
7460
7463
|
"@37",
|
7461
7464
|
"assoc" ]
|
7465
|
+
Ractor.make_shareable(Racc_token_to_s_table) if defined?(Ractor)
|
7462
7466
|
|
7463
7467
|
Racc_debug_parser = false
|
7464
7468
|
|
@@ -9257,7 +9261,6 @@ end
|
|
9257
9261
|
def _reduce_325(val, _values, result)
|
9258
9262
|
result = new_class val
|
9259
9263
|
self.env.unextend
|
9260
|
-
self.lexer.ignore_body_comments
|
9261
9264
|
|
9262
9265
|
result
|
9263
9266
|
end
|
@@ -9280,7 +9283,6 @@ end
|
|
9280
9283
|
def _reduce_328(val, _values, result)
|
9281
9284
|
result = new_sclass val
|
9282
9285
|
self.env.unextend
|
9283
|
-
self.lexer.ignore_body_comments
|
9284
9286
|
|
9285
9287
|
result
|
9286
9288
|
end
|
@@ -9297,7 +9299,6 @@ end
|
|
9297
9299
|
def _reduce_330(val, _values, result)
|
9298
9300
|
result = new_module val
|
9299
9301
|
self.env.unextend
|
9300
|
-
self.lexer.ignore_body_comments
|
9301
9302
|
|
9302
9303
|
result
|
9303
9304
|
end
|
@@ -9321,8 +9322,6 @@ def _reduce_332(val, _values, result)
|
|
9321
9322
|
self.env.unextend
|
9322
9323
|
self.in_def = in_def
|
9323
9324
|
|
9324
|
-
self.lexer.ignore_body_comments
|
9325
|
-
|
9326
9325
|
result
|
9327
9326
|
end
|
9328
9327
|
|
@@ -9366,8 +9365,6 @@ def _reduce_335(val, _values, result)
|
|
9366
9365
|
|
9367
9366
|
# TODO: restore cur_arg ? what's cur_arg?
|
9368
9367
|
|
9369
|
-
self.lexer.ignore_body_comments
|
9370
|
-
|
9371
9368
|
result
|
9372
9369
|
end
|
9373
9370
|
|
@@ -9420,19 +9417,19 @@ end
|
|
9420
9417
|
# reduce 347 omitted
|
9421
9418
|
|
9422
9419
|
def _reduce_348(val, _values, result)
|
9423
|
-
|
9420
|
+
result << self.lexer.comment
|
9424
9421
|
|
9425
9422
|
result
|
9426
9423
|
end
|
9427
9424
|
|
9428
9425
|
def _reduce_349(val, _values, result)
|
9429
|
-
|
9426
|
+
result << self.lexer.comment
|
9430
9427
|
|
9431
9428
|
result
|
9432
9429
|
end
|
9433
9430
|
|
9434
9431
|
def _reduce_350(val, _values, result)
|
9435
|
-
|
9432
|
+
result << self.lexer.comment
|
9436
9433
|
|
9437
9434
|
result
|
9438
9435
|
end
|
@@ -1,7 +1,9 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
#
|
2
4
|
# DO NOT MODIFY!!!!
|
3
|
-
# This file is automatically generated by Racc 1.
|
4
|
-
# from Racc grammar file "".
|
5
|
+
# This file is automatically generated by Racc 1.8.0
|
6
|
+
# from Racc grammar file "stdin".
|
5
7
|
#
|
6
8
|
|
7
9
|
require 'racc/parser.rb'
|
@@ -7131,6 +7133,7 @@ Racc_arg = [
|
|
7131
7133
|
racc_shift_n,
|
7132
7134
|
racc_reduce_n,
|
7133
7135
|
racc_use_result_var ]
|
7136
|
+
Ractor.make_shareable(Racc_arg) if defined?(Ractor)
|
7134
7137
|
|
7135
7138
|
Racc_token_to_s_table = [
|
7136
7139
|
"$end",
|
@@ -7498,6 +7501,7 @@ Racc_token_to_s_table = [
|
|
7498
7501
|
"blkarg_mark",
|
7499
7502
|
"@37",
|
7500
7503
|
"assoc" ]
|
7504
|
+
Ractor.make_shareable(Racc_token_to_s_table) if defined?(Ractor)
|
7501
7505
|
|
7502
7506
|
Racc_debug_parser = false
|
7503
7507
|
|
@@ -9306,7 +9310,6 @@ end
|
|
9306
9310
|
def _reduce_326(val, _values, result)
|
9307
9311
|
result = new_class val
|
9308
9312
|
self.env.unextend
|
9309
|
-
self.lexer.ignore_body_comments
|
9310
9313
|
|
9311
9314
|
result
|
9312
9315
|
end
|
@@ -9329,7 +9332,6 @@ end
|
|
9329
9332
|
def _reduce_329(val, _values, result)
|
9330
9333
|
result = new_sclass val
|
9331
9334
|
self.env.unextend
|
9332
|
-
self.lexer.ignore_body_comments
|
9333
9335
|
|
9334
9336
|
result
|
9335
9337
|
end
|
@@ -9346,7 +9348,6 @@ end
|
|
9346
9348
|
def _reduce_331(val, _values, result)
|
9347
9349
|
result = new_module val
|
9348
9350
|
self.env.unextend
|
9349
|
-
self.lexer.ignore_body_comments
|
9350
9351
|
|
9351
9352
|
result
|
9352
9353
|
end
|
@@ -9370,8 +9371,6 @@ def _reduce_333(val, _values, result)
|
|
9370
9371
|
self.env.unextend
|
9371
9372
|
self.in_def = in_def
|
9372
9373
|
|
9373
|
-
self.lexer.ignore_body_comments
|
9374
|
-
|
9375
9374
|
result
|
9376
9375
|
end
|
9377
9376
|
|
@@ -9415,8 +9414,6 @@ def _reduce_336(val, _values, result)
|
|
9415
9414
|
|
9416
9415
|
# TODO: restore cur_arg ? what's cur_arg?
|
9417
9416
|
|
9418
|
-
self.lexer.ignore_body_comments
|
9419
|
-
|
9420
9417
|
result
|
9421
9418
|
end
|
9422
9419
|
|
@@ -9469,19 +9466,19 @@ end
|
|
9469
9466
|
# reduce 348 omitted
|
9470
9467
|
|
9471
9468
|
def _reduce_349(val, _values, result)
|
9472
|
-
|
9469
|
+
result << self.lexer.comment
|
9473
9470
|
|
9474
9471
|
result
|
9475
9472
|
end
|
9476
9473
|
|
9477
9474
|
def _reduce_350(val, _values, result)
|
9478
|
-
|
9475
|
+
result << self.lexer.comment
|
9479
9476
|
|
9480
9477
|
result
|
9481
9478
|
end
|
9482
9479
|
|
9483
9480
|
def _reduce_351(val, _values, result)
|
9484
|
-
|
9481
|
+
result << self.lexer.comment
|
9485
9482
|
|
9486
9483
|
result
|
9487
9484
|
end
|
@@ -1,7 +1,9 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
#
|
2
4
|
# DO NOT MODIFY!!!!
|
3
|
-
# This file is automatically generated by Racc 1.
|
4
|
-
# from Racc grammar file "".
|
5
|
+
# This file is automatically generated by Racc 1.8.0
|
6
|
+
# from Racc grammar file "stdin".
|
5
7
|
#
|
6
8
|
|
7
9
|
require 'racc/parser.rb'
|
@@ -7131,6 +7133,7 @@ Racc_arg = [
|
|
7131
7133
|
racc_shift_n,
|
7132
7134
|
racc_reduce_n,
|
7133
7135
|
racc_use_result_var ]
|
7136
|
+
Ractor.make_shareable(Racc_arg) if defined?(Ractor)
|
7134
7137
|
|
7135
7138
|
Racc_token_to_s_table = [
|
7136
7139
|
"$end",
|
@@ -7498,6 +7501,7 @@ Racc_token_to_s_table = [
|
|
7498
7501
|
"blkarg_mark",
|
7499
7502
|
"@37",
|
7500
7503
|
"assoc" ]
|
7504
|
+
Ractor.make_shareable(Racc_token_to_s_table) if defined?(Ractor)
|
7501
7505
|
|
7502
7506
|
Racc_debug_parser = false
|
7503
7507
|
|
@@ -9306,7 +9310,6 @@ end
|
|
9306
9310
|
def _reduce_326(val, _values, result)
|
9307
9311
|
result = new_class val
|
9308
9312
|
self.env.unextend
|
9309
|
-
self.lexer.ignore_body_comments
|
9310
9313
|
|
9311
9314
|
result
|
9312
9315
|
end
|
@@ -9329,7 +9332,6 @@ end
|
|
9329
9332
|
def _reduce_329(val, _values, result)
|
9330
9333
|
result = new_sclass val
|
9331
9334
|
self.env.unextend
|
9332
|
-
self.lexer.ignore_body_comments
|
9333
9335
|
|
9334
9336
|
result
|
9335
9337
|
end
|
@@ -9346,7 +9348,6 @@ end
|
|
9346
9348
|
def _reduce_331(val, _values, result)
|
9347
9349
|
result = new_module val
|
9348
9350
|
self.env.unextend
|
9349
|
-
self.lexer.ignore_body_comments
|
9350
9351
|
|
9351
9352
|
result
|
9352
9353
|
end
|
@@ -9370,8 +9371,6 @@ def _reduce_333(val, _values, result)
|
|
9370
9371
|
self.env.unextend
|
9371
9372
|
self.in_def = in_def
|
9372
9373
|
|
9373
|
-
self.lexer.ignore_body_comments
|
9374
|
-
|
9375
9374
|
result
|
9376
9375
|
end
|
9377
9376
|
|
@@ -9415,8 +9414,6 @@ def _reduce_336(val, _values, result)
|
|
9415
9414
|
|
9416
9415
|
# TODO: restore cur_arg ? what's cur_arg?
|
9417
9416
|
|
9418
|
-
self.lexer.ignore_body_comments
|
9419
|
-
|
9420
9417
|
result
|
9421
9418
|
end
|
9422
9419
|
|
@@ -9469,19 +9466,19 @@ end
|
|
9469
9466
|
# reduce 348 omitted
|
9470
9467
|
|
9471
9468
|
def _reduce_349(val, _values, result)
|
9472
|
-
|
9469
|
+
result << self.lexer.comment
|
9473
9470
|
|
9474
9471
|
result
|
9475
9472
|
end
|
9476
9473
|
|
9477
9474
|
def _reduce_350(val, _values, result)
|
9478
|
-
|
9475
|
+
result << self.lexer.comment
|
9479
9476
|
|
9480
9477
|
result
|
9481
9478
|
end
|
9482
9479
|
|
9483
9480
|
def _reduce_351(val, _values, result)
|
9484
|
-
|
9481
|
+
result << self.lexer.comment
|
9485
9482
|
|
9486
9483
|
result
|
9487
9484
|
end
|
@@ -1,7 +1,9 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
#
|
2
4
|
# DO NOT MODIFY!!!!
|
3
|
-
# This file is automatically generated by Racc 1.
|
4
|
-
# from Racc grammar file "".
|
5
|
+
# This file is automatically generated by Racc 1.8.0
|
6
|
+
# from Racc grammar file "stdin".
|
5
7
|
#
|
6
8
|
|
7
9
|
require 'racc/parser.rb'
|
@@ -7135,6 +7137,7 @@ Racc_arg = [
|
|
7135
7137
|
racc_shift_n,
|
7136
7138
|
racc_reduce_n,
|
7137
7139
|
racc_use_result_var ]
|
7140
|
+
Ractor.make_shareable(Racc_arg) if defined?(Ractor)
|
7138
7141
|
|
7139
7142
|
Racc_token_to_s_table = [
|
7140
7143
|
"$end",
|
@@ -7502,6 +7505,7 @@ Racc_token_to_s_table = [
|
|
7502
7505
|
"blkarg_mark",
|
7503
7506
|
"@37",
|
7504
7507
|
"assoc" ]
|
7508
|
+
Ractor.make_shareable(Racc_token_to_s_table) if defined?(Ractor)
|
7505
7509
|
|
7506
7510
|
Racc_debug_parser = false
|
7507
7511
|
|
@@ -9328,7 +9332,6 @@ end
|
|
9328
9332
|
def _reduce_328(val, _values, result)
|
9329
9333
|
result = new_class val
|
9330
9334
|
self.env.unextend
|
9331
|
-
self.lexer.ignore_body_comments
|
9332
9335
|
|
9333
9336
|
result
|
9334
9337
|
end
|
@@ -9351,7 +9354,6 @@ end
|
|
9351
9354
|
def _reduce_331(val, _values, result)
|
9352
9355
|
result = new_sclass val
|
9353
9356
|
self.env.unextend
|
9354
|
-
self.lexer.ignore_body_comments
|
9355
9357
|
|
9356
9358
|
result
|
9357
9359
|
end
|
@@ -9368,7 +9370,6 @@ end
|
|
9368
9370
|
def _reduce_333(val, _values, result)
|
9369
9371
|
result = new_module val
|
9370
9372
|
self.env.unextend
|
9371
|
-
self.lexer.ignore_body_comments
|
9372
9373
|
|
9373
9374
|
result
|
9374
9375
|
end
|
@@ -9392,8 +9393,6 @@ def _reduce_335(val, _values, result)
|
|
9392
9393
|
self.env.unextend
|
9393
9394
|
self.in_def = in_def
|
9394
9395
|
|
9395
|
-
self.lexer.ignore_body_comments
|
9396
|
-
|
9397
9396
|
result
|
9398
9397
|
end
|
9399
9398
|
|
@@ -9437,8 +9436,6 @@ def _reduce_338(val, _values, result)
|
|
9437
9436
|
|
9438
9437
|
# TODO: restore cur_arg ? what's cur_arg?
|
9439
9438
|
|
9440
|
-
self.lexer.ignore_body_comments
|
9441
|
-
|
9442
9439
|
result
|
9443
9440
|
end
|
9444
9441
|
|
@@ -9491,19 +9488,19 @@ end
|
|
9491
9488
|
# reduce 350 omitted
|
9492
9489
|
|
9493
9490
|
def _reduce_351(val, _values, result)
|
9494
|
-
|
9491
|
+
result << self.lexer.comment
|
9495
9492
|
|
9496
9493
|
result
|
9497
9494
|
end
|
9498
9495
|
|
9499
9496
|
def _reduce_352(val, _values, result)
|
9500
|
-
|
9497
|
+
result << self.lexer.comment
|
9501
9498
|
|
9502
9499
|
result
|
9503
9500
|
end
|
9504
9501
|
|
9505
9502
|
def _reduce_353(val, _values, result)
|
9506
|
-
|
9503
|
+
result << self.lexer.comment
|
9507
9504
|
|
9508
9505
|
result
|
9509
9506
|
end
|