src/Pure/ML-Systems/polyml.ML
changeset 3631 88a279998f90
parent 3588 e487bf0ed6c4
child 4326 7211ea5f29e2
equal deleted inserted replaced
3630:aee7effe0816 3631:88a279998f90
    40     fn () => brk (99999, 0), en);
    40     fn () => brk (99999, 0), en);
    41 
    41 
    42 
    42 
    43 (* ML command execution -- 'eval' *)
    43 (* ML command execution -- 'eval' *)
    44 
    44 
    45 val use_string =
    45 val use_strings =
    46   let
    46   let
    47     fun exec line =
    47     fun exec line =
    48       let
    48       let
    49         val is_first = ref true;
    49         val is_first = ref true;
    50 
    50 
    51         fun get_line () =
    51         fun get_line () =
    52           if ! is_first then (is_first := false; line)
    52           if ! is_first then (is_first := false; line)
    53           else raise Io "use_string: buffer exhausted";
    53           else raise Io "use_strings: buffer exhausted";
    54       in
    54       in
    55         PolyML.compiler (get_line, print) ()
    55         PolyML.compiler (get_line, print) ()
    56       end;
    56       end;
    57 
    57 
    58     fun execs [] = ()
    58     fun execs [] = ()