Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions lib/prism/translation/ruby_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@
# :markup: markdown

begin
require "ruby_parser"
require "sexp"
rescue LoadError
warn(%q{Error: Unable to load ruby_parser. Add `gem "ruby_parser"` to your Gemfile.})
warn(%q{Error: Unable to load sexp. Add `gem "sexp"` to your Gemfile.})
exit(1)
end

class RubyParser # :nodoc:
class SyntaxError < RuntimeError # :nodoc:
end
end

module Prism
module Translation
# This module is the entry-point for converting a prism syntax tree into the
Expand Down