functor
export
Editor
Monday
Tuesday
Wednesday
Thursday
Friday
QuartersPerDay
QuartersPerHour
DemoMode
import
Error
prepare
%% Editor = "emacs"
%% Monday = 1#36
Tuesday = 37#72
Wednesday = 73#108
Thursday = 109#144
Friday = 145#180
QuartersPerDay = 36
QuartersPerHour = 4
DemoMode = on
define
{Error.registerFormatter college
fun {$ E}
T = 'error in college timetabling system'
in
case E
of college(A Xs S) then
%% error(kind: T
items: ([hint(l: 'In statement' m: apply(A Xs))
hint(l: 'Reason ' m: S)]))
else
error(kind: T
items: [line(oz(E))])
end
end}
end