prog.close() newProg = [] mainBlock,mainClassBlock = Global.generate("main",code) quote = False func = False clas = False switch = False Loop = False Do = False mainCode = [] for lineNum,line in enumerate(code): if lineNum==mainClassBlock[0]: clas = True funcNames = Class.generate("function names",code[lineNum+2:],Global.newClass().findName(line)) elif lineNum==mainClassBlock[1]: newProg += [line for line in mainCode] clas = False elif lineNum==mainBlock[0]: func = True elif lineNum==mainBlock[1]: func = False else: if line[len(line)-1]=='\n': line = line[:len(line)-1] if quote: pass elif switch: if line.lstrip()=="{": pass elif line.lstrip()=="}":