src/Pure/ROOT.scala
author wenzelm
Mon, 28 Jun 2021 13:13:31 +0200
changeset 73889 5ec68c1a07d8
parent 73710 241cfa881788
child 73910 c678e58cf999
permissions -rw-r--r--
updated to scala-2.13.6, with scala-xml 1.3.0 ~> 2.0.0;

/*  Title:      Pure/ROOT.scala
    Author:     Makarius

Root of isabelle package.
*/

package object isabelle
{
  val ERROR = Exn.ERROR
  val error = Exn.error _
  def cat_error(msgs: String*): Nothing = Exn.cat_error(msgs:_*)

  def using[A <: AutoCloseable, B](a: A)(f: A => B): B = Library.using(a)(f)
  val space_explode = Library.space_explode _
  val split_lines = Library.split_lines _
  val cat_lines = Library.cat_lines _
  val terminate_lines = Library.terminate_lines _
  val quote = Library.quote _
  val commas = Library.commas _
  val commas_quote = Library.commas_quote _
  val proper_string = Library.proper_string _
  def proper_list[A](list: List[A]): Option[List[A]] = Library.proper_list(list)
}