src/Pure/section_utils.ML
changeset 654 65435e2c6512
parent 613 f9eb0f819642
child 1390 bf523422a3df
equal deleted inserted replaced
653:6eeff82979df 654:65435e2c6512
    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);