src/Pure/NJ.ML
author paulson
Wed, 09 Oct 1996 13:32:33 +0200
changeset 2073 fb0655539d05
parent 1480 85ecd3439e01
child 2241 cc5ee79ea416
permissions -rw-r--r--
New unified treatment of sequent calculi by Sara Kalvala combines the old LK and Modal with the new ILL (Int. Linear Logic)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     1
(*  Title:      Pure/NJ
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     2
    ID:         $Id$
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     3
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     4
    Copyright   1993  University of Cambridge
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     5
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     6
Compatibility file for Standard ML of New Jersey.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     7
*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     8
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     9
1480
85ecd3439e01 made Isabelle compatible with SML/NJ 1.09
clasohm
parents: 1289
diff changeset
    10
(*Determine if we are running under 0.93 or a newer version of SML/NJ
85ecd3439e01 made Isabelle compatible with SML/NJ 1.09
clasohm
parents: 1289
diff changeset
    11
  This is based on the variable "version" defined in 0.93's System structure
85ecd3439e01 made Isabelle compatible with SML/NJ 1.09
clasohm
parents: 1289
diff changeset
    12
  which is no longer present in 1.09.*)
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    13
1480
85ecd3439e01 made Isabelle compatible with SML/NJ 1.09
clasohm
parents: 1289
diff changeset
    14
local val version = ""; open System in
85ecd3439e01 made Isabelle compatible with SML/NJ 1.09
clasohm
parents: 1289
diff changeset
    15
  val smlversion = if version <> "" then 93 else 109
85ecd3439e01 made Isabelle compatible with SML/NJ 1.09
clasohm
parents: 1289
diff changeset
    16
end;
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    17
1480
85ecd3439e01 made Isabelle compatible with SML/NJ 1.09
clasohm
parents: 1289
diff changeset
    18
use (if smlversion = 93 then "NJ093.ML" else "NJ1xx.ML");
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    19
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    20
1480
85ecd3439e01 made Isabelle compatible with SML/NJ 1.09
clasohm
parents: 1289
diff changeset
    21
(** Other functions which are not specific to 0.93 or 1.xx*)
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    22
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    23
(*redefine to flush its output immediately -- temporary patch suggested
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    24
  by Kim Dam Petersen*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    25
val output = fn(s, t) => (output(s, t); flush_out s);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    26
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    27
(*Dummy version of the Poly/ML function*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    28
fun commit() = ();