def __reset_parser(self):
        """Reset parser's internal variables

        Restore the parser to an initial state. Useful when creating a
        new parser or reusing an existing one.
        """
        self.result = []
        self.hash_comments = []

        self.__cstate = None
        self.__curcommand = None
        self.__curstringlist = None
        self.__expected = None
        self.__opened_blocks = 0
        RequireCommand.loaded_extensions = []
def __reset_parser ( self ) : self . result = [ ] self . hash_comments = [ ] self . __cstate = None self . __curcommand = None self . __curstringlist = None self . __expected = None self . __opened_blocks = 0 RequireCommand . loaded_extensions = [ ]
Reset parser's internal variables

        Restore the parser to an initial state. Useful when creating a
        new parser or reusing an existing one.