[ruby/racc] Make racc Ractor compatible

1948de9d1d
This commit is contained in:
Masataka Pocke Kuwabara 2021-09-13 19:00:53 +09:00 committed by Hiroshi SHIBATA
parent 7e283c585e
commit 11e15b4d48
21 changed files with 55 additions and 13 deletions

View file

@ -310,8 +310,10 @@ module Racc
racc_reduce_n,
racc_use_result_var ]
End
line "Ractor.make_shareable(Racc_arg) if defined?(Ractor)"
line
string_list 'Racc_token_to_s_table', table.token_to_s_table
line "Ractor.make_shareable(Racc_token_to_s_table) if defined?(Ractor)"
line
line "Racc_debug_parser = #{table.debug_parser}"
line