src/Pure/Isar/isar_syn.ML
changeset 29882 29154e67731d
parent 29857 2cc976ed8a3c
child 30142 8d6145694bb5
child 30240 5b25fee0362c
equal deleted inserted replaced
29881:58f3c48dbbb7 29882:29154e67731d
   876     (options -- Scan.repeat (((Scan.option P.minus >> is_none) -- criterion))
   876     (options -- Scan.repeat (((Scan.option P.minus >> is_none) -- criterion))
   877       >> (Toplevel.no_timing oo IsarCmd.find_theorems));
   877       >> (Toplevel.no_timing oo IsarCmd.find_theorems));
   878 
   878 
   879 end;
   879 end;
   880 
   880 
       
   881 local
       
   882 
       
   883 val criterion =
       
   884   P.reserved "strict" |-- P.!!! (P.$$$ ":" |-- P.xname) >> FindConsts.Strict ||
       
   885   P.reserved "name" |-- P.!!! (P.$$$ ":" |-- P.xname) >> FindConsts.Name ||
       
   886   P.xname >> FindConsts.Loose;
       
   887 
       
   888 in
       
   889 
       
   890 val _ =
       
   891   OuterSyntax.improper_command "find_consts" "search constants by type pattern"
       
   892     K.diag (Scan.repeat (((Scan.option P.minus >> is_none) -- criterion))
       
   893             >> (Toplevel.no_timing oo IsarCmd.find_consts));
       
   894 
       
   895 end;
       
   896 
   881 val _ =
   897 val _ =
   882   OuterSyntax.improper_command "print_binds" "print term bindings of proof context" K.diag
   898   OuterSyntax.improper_command "print_binds" "print term bindings of proof context" K.diag
   883     (Scan.succeed (Toplevel.no_timing o IsarCmd.print_binds));
   899     (Scan.succeed (Toplevel.no_timing o IsarCmd.print_binds));
   884 
   900 
   885 val _ =
   901 val _ =