equal
deleted
inserted
replaced
150 error (loader_msg "nothing known about theory" [name]); |
150 error (loader_msg "nothing known about theory" [name]); |
151 |
151 |
152 |
152 |
153 (* access theory *) |
153 (* access theory *) |
154 |
154 |
155 fun lookup_theory name = #2 (get_thy name); |
155 fun lookup_theory name = |
|
156 (case lookup_thy name of |
|
157 Some (_, Some thy) => Some thy |
|
158 | _ => None); |
156 |
159 |
157 fun get_theory name = |
160 fun get_theory name = |
158 (case lookup_theory name of |
161 (case lookup_theory name of |
159 (Some theory) => theory |
162 (Some theory) => theory |
160 | _ => error (loader_msg "undefined theory entry for" [name])); |
163 | _ => error (loader_msg "undefined theory entry for" [name])); |