equal
deleted
inserted
replaced
359 val _ = |
359 val _ = |
360 Outer_Syntax.command @{command_spec "context"} "begin local theory context" |
360 Outer_Syntax.command @{command_spec "context"} "begin local theory context" |
361 ((Parse.position Parse.xname >> (fn name => |
361 ((Parse.position Parse.xname >> (fn name => |
362 Toplevel.begin_local_theory true (Named_Target.begin name)) || |
362 Toplevel.begin_local_theory true (Named_Target.begin name)) || |
363 Scan.optional Parse_Spec.includes [] -- Scan.repeat Parse_Spec.context_element |
363 Scan.optional Parse_Spec.includes [] -- Scan.repeat Parse_Spec.context_element |
364 >> (fn (incls, elems) => Toplevel.open_target (Bundle.context_cmd incls elems))) |
364 >> (fn (incls, elems) => Toplevel.open_target (#2 o Bundle.context_cmd incls elems))) |
365 --| Parse.begin); |
365 --| Parse.begin); |
366 |
366 |
367 |
367 |
368 (* locales *) |
368 (* locales *) |
369 |
369 |