All Downloads are FREE. Search and download functionalities are using the official Maven repository.

General.output.scala Maven / Gradle / Ivy

/*  Title:      Pure/General/output.scala
    Module:     PIDE
    Author:     Makarius

Isabelle channels for diagnostic output.
*/

package isabelle


object Output
{
  def warning_text(msg: String): String = cat_lines(split_lines(msg).map("### " + _))
  def error_text(msg: String): String = cat_lines(split_lines(msg).map("*** " + _))

  def writeln(msg: String) { Console.err.println(msg) }
  def warning(msg: String) { Console.err.println(warning_text(msg)) }
  def error_message(msg: String) { Console.err.println(error_text(msg)) }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy