Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Prism.lex
lex(code, **options)
lib/prism/ffi.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/prism/ffi.rb, line 240
def lex(code, **options)
LibRubyParser::PrismString.with_string(code) { |string| lex_common(string, code, options) }
end
Mirror the Prism.lex API by using the serialization API.