Registers a parser to parse configuration inputs.

def registerParser(self, parser):
        """
        Registers a parser to parse configuration inputs.
        """

        if not isinstance(parser, Subparser):
            raise TypeError("%s is not an instance of a subparser." % parser)

        self.parsers.append(parser)