Research portable Memory game | Исследовать портируемую игру Память
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

26 行
478B

  1. from Function import *
  2. def process(FILE_IN):
  3. # Read file.
  4. lines_in = []
  5. with open(FILE_IN) as file:
  6. for line in file:
  7. lines_in.append(line.rstrip())
  8. f = Function()
  9. # Translate.
  10. for ln in lines_in:
  11. ln = ln.rstrip()
  12. # Ignore includes.
  13. if "#include" in ln:
  14. continue
  15. f.parseLine(ln)
  16. if f.isComplete:
  17. print("Function ready!")
  18. break
  19. return f"Debug: {f}"