equal
deleted
inserted
replaced
195 in eval flags pos (ML_Lex.read_pos pos (File.read path)) end; |
195 in eval flags pos (ML_Lex.read_pos pos (File.read path)) end; |
196 |
196 |
197 fun eval_source flags source = |
197 fun eval_source flags source = |
198 let |
198 let |
199 val opt_context = Context.get_generic_context (); |
199 val opt_context = Context.get_generic_context (); |
200 val SML = ML_Env.is_standard (#read (ML_Env.parse_environment opt_context (#environment flags))); |
200 val {read_source, ...} = ML_Env.operations opt_context (#environment flags); |
201 in eval flags (Input.pos_of source) (ML_Lex.read_source SML source) end; |
201 in eval flags (Input.pos_of source) (read_source source) end; |
202 |
202 |
203 fun eval_in ctxt flags pos ants = |
203 fun eval_in ctxt flags pos ants = |
204 Context.setmp_generic_context (Option.map Context.Proof ctxt) |
204 Context.setmp_generic_context (Option.map Context.Proof ctxt) |
205 (fn () => eval flags pos ants) (); |
205 (fn () => eval flags pos ants) (); |
206 |
206 |