class Prism::Translation::RubyParser

def translate(result, filepath)

seattlerb/ruby_parser gem's Sexp format.
Translate the given parse result and filepath into the
def translate(result, filepath)
  if result.failure?
    error = result.errors.first
    raise ::RubyParser::SyntaxError, "#{filepath}:#{error.location.start_line} :: #{error.message}"
  end
  result.value.accept(Compiler.new(filepath))
end