Permalink
Browse files

+ cleaned ruby_parse_extract_error output and fixed to 1.9 parser

[git-p4: depot-paths = "//src/ruby_parser/dev/": change = 7658]
  • Loading branch information...
1 parent bb0ab00 commit 1769c690c7a9d9e8d538ae87bd82c8fb364099c9 @zenspider zenspider committed Jul 20, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 bin/ruby_parse_extract_error
@@ -26,7 +26,7 @@ class Racc::Parser
end
def retest_for_errors defs
- d :retest => defs.size
+ warn "# retest: #{defs.size}"
parser = self.class.new
@@ -42,7 +42,7 @@ ARGV.replace ARGV.map { |path|
end
}.flatten
-parser = RubyParser.new
+parser = Ruby19Parser.new
ARGV.each do |file|
ruby = file == "-" ? $stdin.read : File.read(file)
@@ -52,7 +52,7 @@ ARGV.each do |file|
parser.process(ruby, file)
$stderr.puts "good"
rescue Racc::ParseError => e
- $stderr.puts "error: #{e.description}"
+ $stderr.puts "error: #{e.message.strip}"
$stderr.puts
defs = parser.extract_defs

0 comments on commit 1769c69

Please sign in to comment.