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()
- f.parseLine(ln)
- if f.isComplete:
- print("Function ready! Here it is in C++:")
- cpp = CPP(f)
- print(cpp.translate())
- # Create new function instance.
- f = Function()
-
|