Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Prism.lex_compat
Prism::lex_compat(source, **options) → ParseResult
lib/prism.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/prism.rb, line 46
def self.lex_compat(source, **options)
LexCompat.new(source, **options).result
end
Returns a parse result whose value is an array of tokens that closely resembles the return value of Ripper::lex. The main difference is that the :on_sp token is not emitted.
For supported options, see Prism::parse.