src/Pure/ML-Systems/alice.ML
changeset 22575 2ed8a11f3172
parent 22563 78fb2af1a5c3
child 22576 1beba4e2aa9f
equal deleted inserted replaced
22574:e6c25fd3de2a 22575:2ed8a11f3172
     1 (*  Title:      Pure/ML-Systems/alice.ML
     1 (*  Title:      Pure/ML-Systems/alice.ML
     2     ID:         $Id$
     2     ID:         $Id$
     3 
     3 
     4 Compatibility file for Alice 1.3.
     4 Compatibility file for Alice 1.4 (CVS version).
     5 val ml_system = "alice";
     5 val ml_system = "alice";
     6 use "ML-Systems/alice.ML";
     6 use "ML-Systems/alice.ML";
     7 
       
     8 *)
     7 *)
     9 
     8 
    10 fun exit 0 = (OS.Process.exit OS.Process.success): unit
     9 fun exit 0 = (OS.Process.exit OS.Process.success): unit
    11   | exit _ = OS.Process.exit OS.Process.failure;
    10   | exit _ = OS.Process.exit OS.Process.failure;
    12 
    11 
    21 
    20 
    22 exception Ord;
    21 exception Ord;
    23 fun ord "" = raise Ord
    22 fun ord "" = raise Ord
    24   | ord s = Char.ord (String.sub (s, 0));
    23   | ord s = Char.ord (String.sub (s, 0));
    25 
    24 
    26 val chr = Char.toString o chr;
    25 val chr = String.str o chr;
    27 val explode = map Char.toString o String.explode;
    26 val explode = map String.str o String.explode;
    28 val implode = String.concat;
    27 val implode = String.concat;
    29 
    28 
    30 
    29 
    31 (* Poly/ML emulation *)
    30 (* Poly/ML emulation *)
    32 
    31