def recursion_error(self, repeated_parser: str):
if self.finished:<EOL><INDENT>return super().recursion_error(repeated_parser)<EOL><DEDENT>else:<EOL><INDENT>line_index, character_index, line, pointer = self.current_line()<EOL>return '<STR_LIT>''<STR_LIT>'.format(repeated_parser, line_index, character_index, line, pointer)<EOL><DEDENT>
Generate an error to indicate that infinite recursion was encountered.

        A parser can supply a representation of itself to this method and the
        reader will supply the context, including the location where the
        parser stalled.

        Args:
            repeated_parser: A representation of the repeated parser

        Returns:
            A full error message