equal
deleted
inserted
replaced
774 \indexisarcmd{print-codesetup} |
774 \indexisarcmd{print-codesetup} |
775 \indexisaratt{code func} |
775 \indexisaratt{code func} |
776 \indexisaratt{code inline} |
776 \indexisaratt{code inline} |
777 |
777 |
778 \begin{matharray}{rcl} |
778 \begin{matharray}{rcl} |
779 \isarcmd{code_gen}^* & : & \isarkeep{theory~|~proof} \\ |
779 \isarcmd{export_code}^* & : & \isarkeep{theory~|~proof} \\ |
780 \isarcmd{code_thms}^* & : & \isarkeep{theory~|~proof} \\ |
780 \isarcmd{code_thms}^* & : & \isarkeep{theory~|~proof} \\ |
781 \isarcmd{code_deps}^* & : & \isarkeep{theory~|~proof} \\ |
781 \isarcmd{code_deps}^* & : & \isarkeep{theory~|~proof} \\ |
782 \isarcmd{code_datatype} & : & \isartrans{theory}{theory} \\ |
782 \isarcmd{code_datatype} & : & \isartrans{theory}{theory} \\ |
783 \isarcmd{code_const} & : & \isartrans{theory}{theory} \\ |
783 \isarcmd{code_const} & : & \isartrans{theory}{theory} \\ |
784 \isarcmd{code_type} & : & \isartrans{theory}{theory} \\ |
784 \isarcmd{code_type} & : & \isartrans{theory}{theory} \\ |
793 code\ func & : & \isaratt \\ |
793 code\ func & : & \isaratt \\ |
794 code\ inline & : & \isaratt \\ |
794 code\ inline & : & \isaratt \\ |
795 \end{matharray} |
795 \end{matharray} |
796 |
796 |
797 \begin{rail} |
797 \begin{rail} |
798 'code\_gen' ( constexpr + ) ? \\ |
798 'export\_code' ( constexpr + ) ? \\ |
799 ( ( 'in' target ( 'module_name' string ) ? ( 'file' ( string | '-' ) ) ? ( '(' args ')' ) ?) + ) ?; |
799 ( ( 'in' target ( 'module_name' string ) ? ( 'file' ( string | '-' ) ) ? ( '(' args ')' ) ?) + ) ?; |
800 |
800 |
801 'code\_thms' ( constexpr + ) ?; |
801 'code\_thms' ( constexpr + ) ?; |
802 |
802 |
803 'code\_deps' ( constexpr + ) ?; |
803 'code\_deps' ( constexpr + ) ?; |
847 'code\ inline' ( 'del' ) ?; |
847 'code\ inline' ( 'del' ) ?; |
848 \end{rail} |
848 \end{rail} |
849 |
849 |
850 \begin{descr} |
850 \begin{descr} |
851 |
851 |
852 \item [$\isarcmd{code_gen}$] is the canonical interface for generating and |
852 \item [$\isarcmd{export_code}$] is the canonical interface for generating and |
853 serializing code: for a given list of constants, code is generated for the specified |
853 serializing code: for a given list of constants, code is generated for the specified |
854 target language(s). Abstract code is cached incrementally. If no constant is given, |
854 target language(s). Abstract code is cached incrementally. If no constant is given, |
855 the currently cached code is serialized. If no serialization instruction |
855 the currently cached code is serialized. If no serialization instruction |
856 is given, only abstract code is cached. |
856 is given, only abstract code is cached. |
857 |
857 |