def __preppy(self,funcs=['const','expr','while','if','for','script', 'eval','def'],followers=['eof']):
        from compiler.ast import Stmt
        C = []
        a = C.append
        mangle = '_%s__'%self.__class__.__name__
        tokens = self._tokens
        while 1:
            t = tokens[self._tokenX][0]
            if t in followers: break
            p = t in funcs and getattr(self,mangle+t) or self.__serror
            r = p()
            if type(r) is list: C += r
            elif r is not None: a(r)
        self.__tokenPop()
        return Stmt(C)
dataset/ETHPy150Open CGATOxford/cgat/obsolete/preppy.py/PreppyParser.__preppy/original