src/Pure/Isar/isar_syn.ML
changeset 59890 01aff5aa081d
parent 59064 a8bcb5a446c8
child 59901 840d03805755
equal deleted inserted replaced
59889:30eef3e45bd0 59890:01aff5aa081d
   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