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.
|
- from CPP import *
- from Function import *
-
- def process(FILE_IN):
- # Read file.
- lines_in = []
- with open(FILE_IN) as file:
- for line in file:
- lines_in.append(line.rstrip())
-
- f = Function()
-
- # Parse.
- for ln in lines_in:
- ln = ln.rstrip()
-
- # Ignore includes.
- if "#include" in ln:
- continue
-
- f.parseLine(ln)
- if f.isComplete:
- print("Function ready!")
- break
-
- print(f"Debug: {f}")
-
- cpp = CPP(f)
- return cpp.translate()
|