File size: 576 Bytes
339ddd8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | -- Node executor (to gate_checker and adversary): proposes a Python search-replace patch.
-- NOTE: this specification has not been compiled with the GF toolchain in the authoring environment.
abstract PythonExecutor = {
cat
Proposal ; Path ; Status ;
fun
Propose : Path -> Status -> Proposal ;
FilePath : String -> Path ;
PatchState : String -> Status ;
}
concrete PythonExecutorEng of PythonExecutor = {
lincat
Proposal, Path, Status = Str ;
lin
Propose p s = "patch" ++ p ++ "status" ++ s ;
FilePath p = p.s ;
PatchState s = s.s ;
}
|