def coords(self):
return text_coords(self.string, self.pos)<EOL>
r"""
        Return the current scanner position as `(lineno, columnno, line)`.

        This method is useful for displaying the scanner position in a human-
        readable way. For example, you could use it to provide friendlier
        debugging information when writing parsers.

            >>> s = Scanner("abcdef\nghijkl\nmnopqr\nstuvwx\nyz")
            >>> s.coords()
            (0, 0, 'abcdef')
            >>> s.pos += 4
            >>> s.coords()
            (0, 4, 'abcdef')
            >>> s.pos += 2
            >>> s.coords()
            (0, 6, 'abcdef')
            >>> s.pos += 1
            >>> s.coords()
            (1, 0, 'ghijkl')
            >>> s.pos += 4
            >>> s.coords()
            (1, 4, 'ghijkl')
            >>> s.pos += 4
            >>> s.coords()
            (2, 1, 'mnopqr')