src/Tools/Code/code_target.ML
changeset 81706 7beb0cf38292
parent 81705 53fea2ccab19
child 81875 7fe20d394593
equal deleted inserted replaced
81705:53fea2ccab19 81706:7beb0cf38292
   737       >> (fn seri_args => check_code_cmd all_public raw_cs seri_args);
   737       >> (fn seri_args => check_code_cmd all_public raw_cs seri_args);
   738 
   738 
   739 in
   739 in
   740 
   740 
   741 val _ =
   741 val _ =
   742   Outer_Syntax.command \<^command_keyword>\<open>code_reserved\<close>
   742   Outer_Syntax.command \<^command_keyword>\<open>code_reserved\<close> "declare words as reserved for target language"
   743     "declare words as reserved for target language"
   743     (Parse.and_list1 (\<^keyword>\<open>(\<close> |-- (Parse.name --| \<^keyword>\<open>)\<close> -- Scan.repeat1 Parse.name))
   744     (Parse.name -- Scan.repeat1 Parse.name
   744       >> (Toplevel.theory o fold (fn (target, reserveds) => fold (add_reserved target) reserveds)));
   745       >> (fn (target, reserveds) => (Toplevel.theory o fold (add_reserved target)) reserveds));
       
   746 
   745 
   747 val _ =
   746 val _ =
   748   Outer_Syntax.command \<^command_keyword>\<open>code_identifier\<close> "declare mandatory names for code symbols"
   747   Outer_Syntax.command \<^command_keyword>\<open>code_identifier\<close> "declare mandatory names for code symbols"
   749     (parse_symbol_pragmas Parse.name Parse.name Parse.name Parse.name Parse.name Parse.name
   748     (parse_symbol_pragmas Parse.name Parse.name Parse.name Parse.name Parse.name Parse.name
   750       >> (Toplevel.theory o fold set_identifiers_cmd));
   749       >> (Toplevel.theory o fold set_identifiers_cmd));