# HG changeset patch # User wenzelm # Date 1590487776 -7200 # Node ID 2cf0b0293f0d896b165e3b605276d18f298a646b # Parent ce06d6456cc899aacf119d7d4eb10974f194afd9 proper check of example; diff -r ce06d6456cc8 -r 2cf0b0293f0d src/Doc/System/Scala.thy --- a/src/Doc/System/Scala.thy Tue May 26 11:58:42 2020 +0200 +++ b/src/Doc/System/Scala.thy Tue May 26 12:09:36 2020 +0200 @@ -36,15 +36,23 @@ text \ The @{tool_def scala} tool is a direct wrapper for the Scala toplevel; see also @{tool java} above. The command line arguments are that of the - underlying Scala version. + underlying Scala version. This allows to interact with Isabelle/Scala in TTY + mode. An alternative is to use the \<^verbatim>\Console/Scala\ plugin of Isabelle/jEdit + @{cite "isabelle-jedit"}. +\ + +subsubsection \Example\ - This allows to interact with Isabelle/Scala in TTY mode like this: - @{verbatim [display] -\isabelle scala -scala> isabelle.Isabelle_System.getenv("ISABELLE_HOME") -scala> val options = isabelle.Options.init() -scala> options.bool("browser_info") -scala> options.string("document")\} +text \ + Explore the Isabelle system environment in Scala: + @{scala [display] +\import isabelle._ + +val isabelle_home = Isabelle_System.getenv("ISABELLE_HOME") + +val options = Options.init() +options.bool("browser_info") +options.string("document")\} \