src/Pure/Isar/isar_syn.ML
changeset 25794 11bec58fc289
parent 25625 35e2aa8b8b03
child 25861 494d9301cc75
equal deleted inserted replaced
25793:6c2adbf41c7c 25794:11bec58fc289
   748 
   748 
   749 (* nested command *)
   749 (* nested command *)
   750 
   750 
   751 val _ =
   751 val _ =
   752   OuterSyntax.improper_command "Isabelle.command" "nested Isabelle command" K.control
   752   OuterSyntax.improper_command "Isabelle.command" "nested Isabelle command" K.control
   753     (P.position P.string :|-- (fn (str, pos) =>
   753     ((Scan.optional P.properties [] -- P.position P.string) :|-- (fn (props, arg) =>
   754       (case OuterSyntax.parse pos str of
   754       Scan.succeed (K (IsarCmd.nested_command props arg))
   755         [transition] => Scan.succeed (K transition)
   755         handle ERROR msg => Scan.fail_with (K msg)));
   756       | _ => Scan.fail_with (K "exactly one command expected"))
       
   757       handle ERROR msg => Scan.fail_with (K msg)));
       
   758 
   756 
   759 
   757 
   760 
   758 
   761 (** diagnostic commands (for interactive mode only) **)
   759 (** diagnostic commands (for interactive mode only) **)
   762 
   760