src/Pure/ROOT.scala
author wenzelm
Wed, 31 Jul 2019 19:50:38 +0200
changeset 70451 550a5a822edb
parent 69458 5655af3ea5bd
child 71379 942cc80ba18a
permissions -rw-r--r--
clarified export: retain proof boxes as local definitions -- more scalable;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
57647
5c600dd17617 clarified file names;
wenzelm
parents: 45673
diff changeset
     1
/*  Title:      Pure/ROOT.scala
42720
caa4f1279154 added toplevel isabelle package -- reduce warnings with scala-2.9.0.final;
wenzelm
parents:
diff changeset
     2
    Author:     Makarius
caa4f1279154 added toplevel isabelle package -- reduce warnings with scala-2.9.0.final;
wenzelm
parents:
diff changeset
     3
57647
5c600dd17617 clarified file names;
wenzelm
parents: 45673
diff changeset
     4
Root of isabelle package.
42720
caa4f1279154 added toplevel isabelle package -- reduce warnings with scala-2.9.0.final;
wenzelm
parents:
diff changeset
     5
*/
caa4f1279154 added toplevel isabelle package -- reduce warnings with scala-2.9.0.final;
wenzelm
parents:
diff changeset
     6
62492
0e53fade87fe clarified modules;
wenzelm
parents: 57649
diff changeset
     7
package object isabelle
42720
caa4f1279154 added toplevel isabelle package -- reduce warnings with scala-2.9.0.final;
wenzelm
parents:
diff changeset
     8
{
62492
0e53fade87fe clarified modules;
wenzelm
parents: 57649
diff changeset
     9
  val ERROR = Exn.ERROR
0e53fade87fe clarified modules;
wenzelm
parents: 57649
diff changeset
    10
  val error = Exn.error _
68131
62a3294edda3 tuned signature;
wenzelm
parents: 67885
diff changeset
    11
  def cat_error(msgs: String*): Nothing = Exn.cat_error(msgs:_*)
62492
0e53fade87fe clarified modules;
wenzelm
parents: 57649
diff changeset
    12
69393
ed0824ef337e static type for Library.using: avoid Java 11 warnings on "Illegal reflective access";
wenzelm
parents: 68144
diff changeset
    13
  def using[A <: AutoCloseable, B](a: A)(f: A => B): B = Library.using(a)(f)
62492
0e53fade87fe clarified modules;
wenzelm
parents: 57649
diff changeset
    14
  val space_explode = Library.space_explode _
0e53fade87fe clarified modules;
wenzelm
parents: 57649
diff changeset
    15
  val split_lines = Library.split_lines _
0e53fade87fe clarified modules;
wenzelm
parents: 57649
diff changeset
    16
  val cat_lines = Library.cat_lines _
64173
85ff21510ba9 tuned signature;
wenzelm
parents: 63789
diff changeset
    17
  val terminate_lines = Library.terminate_lines _
62492
0e53fade87fe clarified modules;
wenzelm
parents: 57649
diff changeset
    18
  val quote = Library.quote _
0e53fade87fe clarified modules;
wenzelm
parents: 57649
diff changeset
    19
  val commas = Library.commas _
0e53fade87fe clarified modules;
wenzelm
parents: 57649
diff changeset
    20
  val commas_quote = Library.commas_quote _
65761
ce909161d030 more operations;
wenzelm
parents: 65715
diff changeset
    21
  def proper[A](x: A): Option[A] = Library.proper(x)
65712
ddd6dfc28e80 more operations;
wenzelm
parents: 64370
diff changeset
    22
  val proper_string = Library.proper_string _
65761
ce909161d030 more operations;
wenzelm
parents: 65715
diff changeset
    23
  def proper_list[A](list: List[A]): Option[List[A]] = Library.proper_list(list)
42720
caa4f1279154 added toplevel isabelle package -- reduce warnings with scala-2.9.0.final;
wenzelm
parents:
diff changeset
    24
}