lib/rd/rdblockparser.tab.rb in rdtool-0.6.31 vs lib/rd/rdblockparser.tab.rb in rdtool-0.6.32

- old
+ new

@@ -1,8 +1,8 @@ # # DO NOT MODIFY!!!! -# This file is automatically generated by racc 1.4.4 +# This file is automatically generated by racc 1.4.5 # from racc grammer file "lib/rd/rdblockparser.ry". # require 'racc/parser' @@ -12,11 +12,11 @@ module RD class RDParser < Racc::Parser -module_eval <<'..end lib/rd/rdblockparser.ry modeval..idc4b57748f0', 'lib/rd/rdblockparser.ry', 231 +module_eval <<'..end lib/rd/rdblockparser.ry modeval..id8f0eb19cd5', 'lib/rd/rdblockparser.ry', 231 include ParserUtility TMPFILE = ["rdtmp", $$, 0] attr_reader :tree @@ -87,11 +87,11 @@ @part_content.clear # call filter, part_out is output(Part object) part_out = @tree.filter[@in_part].call(part) if @tree.filter[@in_part].mode == :rd # if output is RD formated - subtree = parse_subtree(part_out.to_a) + subtree = parse_subtree( (RUBY_VERSION >= '1.9.0' ? part_out.lines.to_a : part_out.to_a ) ) else # if output is target formated basename = TMPFILE.join('.') TMPFILE[-1] += 1 tmpfile = open(@tree.tmp_dir + "/" + basename + ".#{@in_part}", "w") tmpfile.print(part_out) @@ -294,12 +294,12 @@ width = args.collect{|i| i.to_s.length }.max args.collect{|i| sprintf("%#{width}d", i) } end private :format_line_num -..end lib/rd/rdblockparser.ry modeval..idc4b57748f0 +..end lib/rd/rdblockparser.ry modeval..id8f0eb19cd5 -##### racc 1.4.4 generates ### +##### racc 1.4.5 generates ### racc_reduce_table = [ 0, 0, :racc_error, 1, 15, :_reduce_1, 0, 15, :_reduce_2,