File size: 656 Bytes
339ddd8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | -- Node gate_checker (to arbiter): runs Python syntax, static checks, and selected tests.
-- NOTE: this specification has not been compiled with the GF toolchain in the authoring environment.
abstract PythonGateChecker = {
cat
Report ; Gate ; Verdict ;
fun
Record : Gate -> Verdict -> Report ;
Named : String -> Gate ;
Confirmed : Verdict ;
Rejected : Verdict ;
Abstain : Verdict ;
}
concrete PythonGateCheckerEng of PythonGateChecker = {
lincat
Report, Gate, Verdict = Str ;
lin
Record g v = g ++ "=" ++ v ;
Named s = s.s ;
Confirmed = "CONFIRMED" ;
Rejected = "REJECTED" ;
Abstain = "ABSTAIN" ;
}
|