src/Pure/ML-Systems/polyml-3.x.ML
author wenzelm
Thu, 15 Nov 2001 18:20:13 +0100
changeset 12207 4dff931b852f
parent 12108 b6f10dcde803
child 12896 4518acda6d93
permissions -rw-r--r--
added Induct/Binary_Trees.thy, Induct/Tree_Forest (converted from former ex/TF.ML ex/TF.thy ex/Term.ML ex/Term.thy);
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11063
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
     1
(*  Title:      Pure/ML-Systems/polyml.ML
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
     2
    ID:         $Id$
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
     3
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
     4
    Copyright   1991  University of Cambridge
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
     5
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
     6
Compatibility file for Poly/ML (versions 2.x and 3.x).
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
     7
*)
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
     8
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
     9
open PolyML ExtendedIO;
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    10
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    11
(*needs the Basis Library emulation*)
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    12
use "basis.ML";
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    13
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    14
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    15
structure String =
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    16
struct
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    17
  fun substring (s,i,j) = StringBuiltIns.substring (s, i+1, j)
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    18
                          handle Substring => raise Subscript
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    19
  fun isPrefix s1 s2 = (s1 = substring(s2,0, size s1))
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    20
                       handle Subscript => false
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    21
end;
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    22
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    23
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    24
(** ML system related **)
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    25
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    26
(** Compiler-independent timing functions **)
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    27
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    28
(*Note start point for timing*)
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    29
fun startTiming() = System.processtime ();
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    30
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    31
(*Finish timing and return string*)
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    32
fun endTiming before =
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    33
  "User + GC: " ^
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    34
  makestring (real (System.processtime () - before) / 10.0) ^
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    35
  " secs";
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    36
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    37
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    38
(* prompts *)
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    39
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    40
fun ml_prompts p1 p2 = (PolyML.Compiler.prompt1 := p1; PolyML.Compiler.prompt2 := p2);
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    41
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    42
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    43
(* toplevel pretty printing (see also Pure/install_pp.ML) *)
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    44
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    45
fun make_pp _ pprint (str, blk, brk, en) obj =
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    46
  pprint obj (str, fn ind => blk (ind, false), fn wd => brk (wd, 0),
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    47
    fn () => brk (99999, 0), en);
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    48
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    49
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    50
(* ML command execution -- 'eval' *)
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    51
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    52
local
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    53
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    54
fun drop_last [] = []
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    55
  | drop_last [x] = []
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    56
  | drop_last (x :: xs) = x :: drop_last xs;
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    57
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    58
val drop_last_char = implode o drop_last o explode;
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    59
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    60
in
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    61
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    62
fun use_text (print, err) verbose txt =
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    63
  let
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    64
    val in_buffer = ref (explode txt);
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    65
    val out_buffer = ref ([]: string list);
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    66
    fun output () = drop_last_char (implode (rev (! out_buffer)));
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    67
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    68
    fun get () =
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    69
      (case ! in_buffer of
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    70
        [] => ""
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    71
      | c :: cs => (in_buffer := cs; c));
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    72
    fun put s = out_buffer := s :: ! out_buffer;
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    73
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    74
    fun exec () =
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    75
      (case ! in_buffer of
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    76
        [] => ()
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    77
      | _ => (PolyML.compiler (get, put) (); exec ()));
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    78
  in
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    79
    exec () handle exn => (err (output ()); raise exn);
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    80
    if verbose then print (output ()) else ()
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    81
  end;
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    82
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    83
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    84
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    85
(** interrupts **)      (*Note: may get into race conditions*)
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    86
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    87
fun mask_interrupt f x = f x;
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    88
fun unmask_interrupt f x = f x;
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    89
fun exhibit_interrupt f x = f x;
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    90
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    91
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    92
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    93
(** OS related **)
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    94
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    95
(* system command execution *)
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    96
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    97
(*execute Unix command which doesn't take any input from stdin and
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    98
  sends its output to stdout*)
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
    99
fun execute command =
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   100
  let
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   101
    val (is, os) =  ExtendedIO.execute command;
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   102
    val _ = close_out os;
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   103
    val result = input (is, 999999);
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   104
  in close_in is; result end;
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   105
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   106
fun system cmd = (print (execute cmd); 0);	(* FIXME rc not available *)
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   107
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   108
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   109
(* file handling *)
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   110
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   111
(*get time of last modification*)
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   112
fun file_info name = Int.toString (System.filedate name) handle _ => "";
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   113
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   114
structure OS =
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   115
struct
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   116
  structure FileSys =
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   117
  struct
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   118
    val chDir = PolyML.cd;
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   119
    fun remove name = (execute ("rm " ^ name); ());
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   120
    fun getDir () = drop_last_char (execute "pwd");
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   121
  end;
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   122
end;
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   123
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   124
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   125
(* getenv *)
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   126
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   127
fun getenv var = drop_last_char
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   128
  (execute ("env | grep '^" ^ var ^ "=' | sed -e 's/" ^ var ^ "=//'"));
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   129
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   130
82578cdb76cf renamed polyml.ML to polyml-3.x.ML and polyml-4.0.ML to polyml.ML (default);
wenzelm
parents:
diff changeset
   131
end;