equal
deleted
inserted
replaced
73 val thy_path = Path.ext "thy" o Path.basic; |
73 val thy_path = Path.ext "thy" o Path.basic; |
74 |
74 |
75 fun split_thy_path path = |
75 fun split_thy_path path = |
76 (case Path.split_ext path of |
76 (case Path.split_ext path of |
77 (path', "thy") => (Path.dir path', Path.implode (Path.base path')) |
77 (path', "thy") => (Path.dir path', Path.implode (Path.base path')) |
78 | _ => error ("Bad theory file specification: " ^ Path.implode path)); |
78 | _ => error ("Bad theory file specification: " ^ Path.print path)); |
79 |
79 |
80 fun consistent_name name name' = |
80 fun consistent_name name name' = |
81 if name = name' then () |
81 if name = name' then () |
82 else error ("Bad file name " ^ quote (Path.implode (thy_path name)) ^ |
82 else error ("Bad file name " ^ Path.print (thy_path name) ^ " for theory " ^ quote name'); |
83 " for theory " ^ quote name'); |
|
84 |
83 |
85 end; |
84 end; |