equal
deleted
inserted
replaced
493 val src' = map Token.init_assignable src; |
493 val src' = map Token.init_assignable src; |
494 val ctxt' = Context_Position.not_really ctxt; |
494 val ctxt' = Context_Position.not_really ctxt; |
495 val _ = Seq.pull (method ctxt' src' ctxt' [] (ctxt', Goal.protect 0 Drule.dummy_thm)); |
495 val _ = Seq.pull (method ctxt' src' ctxt' [] (ctxt', Goal.protect 0 Drule.dummy_thm)); |
496 in map Token.closure src' end; |
496 in map Token.closure src' end; |
497 |
497 |
498 val closure = Config.bool (Config.declare ("Method.closure", \<^here>) (K (Config.Bool true))); |
498 val closure = Config.declare_bool ("Method.closure", \<^here>) (K true); |
499 |
499 |
500 fun method_cmd ctxt = |
500 fun method_cmd ctxt = |
501 check_src ctxt #> |
501 check_src ctxt #> |
502 Config.get ctxt closure ? method_closure ctxt #> |
502 Config.get ctxt closure ? method_closure ctxt #> |
503 method ctxt; |
503 method ctxt; |
603 fun modifier attribute pos : modifier = {init = I, attribute = attribute, pos = pos}; |
603 fun modifier attribute pos : modifier = {init = I, attribute = attribute, pos = pos}; |
604 |
604 |
605 |
605 |
606 (* sections *) |
606 (* sections *) |
607 |
607 |
608 val old_section_parser = |
608 val old_section_parser = Config.declare_bool ("Method.old_section_parser", \<^here>) (K false); |
609 Config.bool (Config.declare ("Method.old_section_parser", \<^here>) (K (Config.Bool false))); |
|
610 |
609 |
611 local |
610 local |
612 |
611 |
613 fun thms ss = |
612 fun thms ss = |
614 Scan.repeats (Scan.unless (Scan.lift (Scan.first ss)) Attrib.multi_thm); |
613 Scan.repeats (Scan.unless (Scan.lift (Scan.first ss)) Attrib.multi_thm); |