def _fetch(cur):
	"""Extract the next character from a cursor and advance its position."""
	src, line, col = cur
	head, *tail = src

	if head == '\n':
		return head, (tail, line+1, 1)
	else:
		return head, (tail, line, col+1)