Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

class method

Prism::Translation::RubyParser.parse

parse(source, filepath = "(string)")

Parse the given source and translate it into the seattlerb/ruby_parser gem’s Sexp format.

See also #parse .parse_file also in 4.0