def parseReference(self, type):
        """
        Parse a reference.

        @return: the parsed reference
        @rtype: L{Reference}
        @raise ConfigFormatError: if a syntax error is found.
        """
        word = self.match(WORD)
        rv = Reference(self.config, type, word[1])
        while self.token[0] in [DOT, LBRACK2]:
            self.parseSuffix(rv)
        return rv
dataset/ETHPy150Open twitterdev/twitter-for-bigquery/libs/config.py/ConfigReader.parseReference/original