equal
deleted
inserted
replaced
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)); |