def stop_program(): Unit = synchronized {
_running_program match { case Some(program) =>
program.stop_now()
_finished_programs ::= program
_running_program = None case None =>
}
}
def detect_program(s: String): Option[String]
overridedef output(msgs: Progress.Output): Unit = synchronized { for (msg <- msgs) { val message = msg.message val writeln_msg = if (message.kind == Progress.Kind.writeln) message.text else""
detect_program(writeln_msg).map(Word.explode) match { case Some(a :: bs) =>
stop_program()
start_program(a, Word.implode(bs)) case _ => if (_running_program.isEmpty) start_program(default_heading, default_title) if (do_output(message)) _running_program.get.output(message)
}
}
}
}
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.