equal
deleted
inserted
replaced
624 ML \<open> |
624 ML \<open> |
625 local |
625 local |
626 |
626 |
627 val _ = |
627 val _ = |
628 Outer_Syntax.command \<^command_keyword>\<open>context\<close> "begin local theory context" |
628 Outer_Syntax.command \<^command_keyword>\<open>context\<close> "begin local theory context" |
629 ((Parse.name_position >> (Toplevel.begin_main_target true o Named_Target.begin) || |
629 ((Parse.name_position |
|
630 >> (fn name => Toplevel.begin_main_target true (Target_Context.context_begin_named_cmd name)) || |
630 Scan.optional Parse_Spec.includes [] -- Scan.repeat Parse_Spec.context_element |
631 Scan.optional Parse_Spec.includes [] -- Scan.repeat Parse_Spec.context_element |
631 >> (fn (incls, elems) => Toplevel.begin_nested_target (#2 o Bundle.context_cmd incls elems))) |
632 >> (fn (incls, elems) => Toplevel.begin_nested_target (Target_Context.context_begin_nested_cmd incls elems))) |
632 --| Parse.begin); |
633 --| Parse.begin); |
633 |
634 |
634 val _ = |
635 val _ = |
635 Outer_Syntax.command \<^command_keyword>\<open>end\<close> "end context" |
636 Outer_Syntax.command \<^command_keyword>\<open>end\<close> "end context" |
636 (Scan.succeed |
637 (Scan.succeed |