equal
deleted
inserted
replaced
59 then front @ escape (tl (snd (take_prefix is_blank rest))) |
59 then front @ escape (tl (snd (take_prefix is_blank rest))) |
60 else error ("Unrecognized string escape: " ^ implode(b::c::rest))); |
60 else error ("Unrecognized string escape: " ^ implode(b::c::rest))); |
61 |
61 |
62 (*Remove the first and last charaters -- presumed to be quotes*) |
62 (*Remove the first and last charaters -- presumed to be quotes*) |
63 val trim = implode o escape o rev o tl o rev o tl o explode; |
63 val trim = implode o escape o rev o tl o rev o tl o explode; |
|
64 |
|
65 |
|
66 (*Check for some named theory*) |
|
67 fun require_thy thy name sect = |
|
68 if exists (equal name o !) (stamps_of_thy thy) then () |
|
69 else error ("Need at least theory " ^ quote name ^ " for " ^ sect); |