equal
deleted
inserted
replaced
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 [] = () |