equal
deleted
inserted
replaced
11 $ isabelle RAW_ML_SYSTEM |
11 $ isabelle RAW_ML_SYSTEM |
12 > val ml_system = "mosml"; |
12 > val ml_system = "mosml"; |
13 > use "ML-Systems/mosml.ML"; |
13 > use "ML-Systems/mosml.ML"; |
14 > use "ROOT.ML"; |
14 > use "ROOT.ML"; |
15 > Session.finish (); |
15 > Session.finish (); |
16 > cd "../HOL"; |
16 > cd "../FOL"; |
17 > use "ROOT.ML"; |
17 > use "ROOT.ML"; |
18 *) |
18 *) |
19 |
19 |
20 (** ML system related **) |
20 (** ML system related **) |
21 |
21 |
121 |
121 |
122 structure TextIO = |
122 structure TextIO = |
123 struct |
123 struct |
124 fun canInput _ = raise IO.Io {cause = Fail "undefined", function = "canInput", name = ""}; |
124 fun canInput _ = raise IO.Io {cause = Fail "undefined", function = "canInput", name = ""}; |
125 open TextIO; |
125 open TextIO; |
|
126 fun inputLine is = |
|
127 let val s = TextIO.inputLine is |
|
128 in if s = "" then NONE else SOME s end; |
126 end; |
129 end; |
127 |
130 |
128 |
131 |
129 (* bounded time execution *) |
132 (* bounded time execution *) |
130 |
133 |