Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

applying zenspider's patch

  • Loading branch information...
commit 8f06cc2b8d564442339f198da3754aec775728e7 1 parent 9f4b64e
@tenderlove authored
Showing with 6 additions and 5 deletions.
  1. +4 −4 bin/racc
  2. +2 −1  lib/racc/parserfilegenerator.rb
View
8 bin/racc
@@ -167,10 +167,10 @@ def main
params.make_executable = true
params.interpreter = rubypath
end
- params.debug_parser = true if debug_parser
- params.convert_line = true if line_convert
- params.convert_line_all = true if line_convert_all
- params.embed_runtime = true if embed_runtime
+ params.debug_parser = debug_parser
+ params.convert_line = line_convert
+ params.convert_line_all = line_convert_all
+ params.embed_runtime = embed_runtime
profiler.section('generation') {
generator = Racc::ParserFileGenerator.new(states, params)
generator.generate_parser_file(output || make_filename(input, '.tab.rb'))
View
3  lib/racc/parserfilegenerator.rb
@@ -427,7 +427,8 @@ def _reduce_%d(val, _values%s)
src.text, retval,
delim
else
- @f.printf unident_auto(<<-End),
+ src = remove_blank_lines(src0)
+ @f.printf unindent_auto(<<-End),
def _reduce_%d(val, _values%s)
%s%s
end
Please sign in to comment.
Something went wrong with that request. Please try again.