# File rparsec/locator.rb, line 12
  def locate(ind)
    return _locateEof if ind >= code.length
    line, col = 1,1
    return line,col if ind<=0
    for i in (0...ind)
      c = code[i]
      if c == LF
        line, col = line+1, 1
      else
        col = col+1
      end
    end
    return line, col
  end