def scan_decimal(self):
        i, value = 0, 0
        while self.char and self.char in DIGITS:
            value = value*10 + int(self.char)
            i += 1
            if i > 8:
                raise IOError("decimal %d... too long" % value)
            self.advance()
        return value
dataset/ETHPy150Open grawity/hacks/lib/python/nullroute/sexp.py/SexpParser.scan_decimal/original