12345678910111213141516171819202122232425262728 |
- // Do this only in the bootstrapper
- include "io.alh"
- include "primitives.alh"
- include "compilation_manager.alh"
- include "constructors.alh"
- include "modelling.alh"
- Void mutable function new_task():
- Integer interface
- while (True):
- interface = input()
- if (interface == 0):
- exec(deserialize(input()))
- elif (interface == 1):
- exec(construct_unknown())
- elif (interface == 2):
- output("DONE")
- elif (interface == 3):
- compilation_manager()
- elif (interface == 4):
- construct_model()
- elif (interface == -1):
- return!
- else:
- log("Unsupported interface!")
- return!
|