src/Tools/Code/code_eval.ML
changeset 38922 ec2a8efd8990
parent 38921 15f8cffdbf5d
child 38923 79d7f2b4cf71
equal deleted inserted replaced
38921:15f8cffdbf5d 38922:ec2a8efd8990
   148 
   148 
   149 fun add_eval_constr (const, const') thy =
   149 fun add_eval_constr (const, const') thy =
   150   let
   150   let
   151     val k = Code.args_number thy const;
   151     val k = Code.args_number thy const;
   152     fun pr pr' fxy ts = Code_Printer.brackify fxy
   152     fun pr pr' fxy ts = Code_Printer.brackify fxy
   153       (const' :: the_list (Code_ML.print_tuple pr' Code_Printer.BR (map fst ts)));
   153       (const' :: the_list (Code_Printer.tuplify pr' Code_Printer.BR (map fst ts)));
   154   in
   154   in
   155     thy
   155     thy
   156     |> Code_Target.add_syntax_const target const (SOME (Code_Printer.simple_const_syntax (k, pr)))
   156     |> Code_Target.add_syntax_const target const (SOME (Code_Printer.simple_const_syntax (k, pr)))
   157   end;
   157   end;
   158 
   158