class Treetop::Runtime::CompiledParser

def terminal_failures

def terminal_failures
  if @terminal_failures.empty? || @terminal_failures[-1].is_a?(TerminalParseFailure)
    @terminal_failures
  else
    @terminal_failures.map! {|tf_ary| tf_ary.is_a?(TerminalParseFailure) ? tf_ary : TerminalParseFailure.new(*tf_ary) }
  end
end