Actions
Feature #20759
closedNo good API to query which parser is being used
Status:
Rejected
Assignee:
-
Target version:
-
Description
Right now the best way I found is:
parser = RUBY_DESCRIPTION =~ /prism/i ? "prism" : "parse.y"
This is useful if you want to invoke a subprocess with the same options given to ruby. ARGV parsing might not work because the option might have been given via RUBYOPT.
Maybe RubyVM::PARSER
could be set to the current parser, and this value could either be a String or Symbol.
Actions
Like0
Like0Like0Like0