def beginning_of_line(self):
if self.pos > len(self.string):<EOL><INDENT>return None<EOL><DEDENT>elif self.pos == <NUM_LIT:0>:<EOL><INDENT>return True<EOL><DEDENT>return self.string[self.pos - <NUM_LIT:1>] == '<STR_LIT:\n>'<EOL>
r"""
        Return true if the scan pointer is at the beginning of a line.

            >>> s = Scanner("test\ntest\n")
            >>> s.beginning_of_line()
            True
            >>> s.skip(r'te')
            2
            >>> s.beginning_of_line()
            False
            >>> s.skip(r'st\n')
            3
            >>> s.beginning_of_line()
            True
            >>> s.terminate()
            >>> s.beginning_of_line()
            True