src/Tools/nbe.ML
changeset 24867 e5b55d7be9bb
parent 24839 199c48ec5a09
child 24920 2a45e400fdad
equal deleted inserted replaced
24866:6e6d9e80ebb4 24867:e5b55d7be9bb
   408 
   408 
   409 local structure P = OuterParse and K = OuterKeyword in
   409 local structure P = OuterParse and K = OuterKeyword in
   410 
   410 
   411 val opt_modes = Scan.optional (P.$$$ "(" |-- P.!!! (Scan.repeat1 P.xname --| P.$$$ ")")) [];
   411 val opt_modes = Scan.optional (P.$$$ "(" |-- P.!!! (Scan.repeat1 P.xname --| P.$$$ ")")) [];
   412 
   412 
   413 val nbeP =
   413 val _ =
   414   OuterSyntax.improper_command "normal_form" "normalize term by evaluation" K.diag
   414   OuterSyntax.improper_command "normal_form" "normalize term by evaluation" K.diag
   415     (opt_modes -- P.typ >> (Toplevel.keep o norm_print_term_cmd));
   415     (opt_modes -- P.typ >> (Toplevel.keep o norm_print_term_cmd));
   416 
   416 
   417 val _ = OuterSyntax.add_parsers [nbeP];
       
   418 
       
   419 end;
   417 end;
   420 
   418 
   421 end;
   419 end;