We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5bf88da + df677c3 commit 122c80aCopy full SHA for 122c80a
lib/prism/translation/ruby_parser.rb
@@ -2,12 +2,17 @@
2
# :markup: markdown
3
4
begin
5
- require "ruby_parser"
+ require "sexp"
6
rescue LoadError
7
- 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.})
8
exit(1)
9
end
10
11
+class RubyParser # :nodoc:
12
+ class SyntaxError < RuntimeError # :nodoc:
13
+ end
14
+end
15
+
16
module Prism
17
module Translation
18
# This module is the entry-point for converting a prism syntax tree into the
0 commit comments