lib/vernacular/ast/ast_parser.rb in vernacular-ast-0.0.1 vs lib/vernacular/ast/ast_parser.rb in vernacular-ast-0.1.0

- old
+ new

@@ -73,11 +73,11 @@ end.join("\n") end # rubocop:enable Metrics/MethodLength def parser_source - filepath, = Parser.method(:check_for_encoding_support).source_location - grammar_filepath = "../../lib/parser/ruby#{parser_version}.y" + filepath, = Parser::Base.method(:parse).source_location + grammar_filepath = "../../parser/ruby#{parser_version}.y" File.read(File.expand_path(grammar_filepath, filepath)) end def parser_version @parser_version ||= RUBY_VERSION.gsub(/\A(\d)\.(\d).+/, '\1\2')