Research portable Memory game | Исследовать портируемую игру Память
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

process.py 478B

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
12345678910111213141516171819202122232425
  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}"