src/Tools/Code/code_thingol.ML
changeset 46961 5c6955f487e5
parent 46665 919dfcdf6d8a
child 47005 421760a1efe7
equal deleted inserted replaced
46960:f19e5837ad69 46961:5c6955f487e5
  1044 fun code_deps_cmd thy = code_deps thy o op @ o read_const_exprs thy;
  1044 fun code_deps_cmd thy = code_deps thy o op @ o read_const_exprs thy;
  1045 
  1045 
  1046 in
  1046 in
  1047 
  1047 
  1048 val _ =
  1048 val _ =
  1049   Outer_Syntax.improper_command "code_thms" "print system of code equations for code" Keyword.diag
  1049   Outer_Syntax.improper_command @{command_spec "code_thms"}
       
  1050     "print system of code equations for code"
  1050     (Scan.repeat1 Parse.term_group
  1051     (Scan.repeat1 Parse.term_group
  1051       >> (fn cs => Toplevel.no_timing o Toplevel.unknown_theory
  1052       >> (fn cs => Toplevel.no_timing o Toplevel.unknown_theory
  1052         o Toplevel.keep ((fn thy => code_thms_cmd thy cs) o Toplevel.theory_of)));
  1053         o Toplevel.keep ((fn thy => code_thms_cmd thy cs) o Toplevel.theory_of)));
  1053 
  1054 
  1054 val _ =
  1055 val _ =
  1055   Outer_Syntax.improper_command "code_deps" "visualize dependencies of code equations for code"
  1056   Outer_Syntax.improper_command @{command_spec "code_deps"}
  1056     Keyword.diag
  1057     "visualize dependencies of code equations for code"
  1057     (Scan.repeat1 Parse.term_group
  1058     (Scan.repeat1 Parse.term_group
  1058       >> (fn cs => Toplevel.no_timing o Toplevel.unknown_theory
  1059       >> (fn cs => Toplevel.no_timing o Toplevel.unknown_theory
  1059         o Toplevel.keep ((fn thy => code_deps_cmd thy cs) o Toplevel.theory_of)));
  1060         o Toplevel.keep ((fn thy => code_deps_cmd thy cs) o Toplevel.theory_of)));
  1060 
  1061 
  1061 end;
  1062 end;