drscheme:language:create-module-based-stand-alone-executable in DrScheme Tools Functions
(drscheme:language:create-module-based-stand-alone-executable-> void?program-filenameexecutable-filenamemodule-language-spectransformer-module-language-specinit-codegui?use-copy?)
program-filename: (union path? string?)
executable-filename: (union path? string?)
module-language-spec: any/c
transformer-module-language-spec: any/c
init-code: any/c
gui?: boolean?
use-copy?: boolean?This procedure creates a stand-alone executable in the file
executable-filenamethat runs the programprogram-filename.The arguments
module-language-specandtransformer-module-language-specspecify the settings of the initial namespace, both the transformer portion and the regular portion.The
init-codeargument is an s-expression representing the code for a module. This module is expected to provide the identiferinit-code, bound to a procedure of no arguments. That module is required and theinit-codeprocedure is executed to initialize language-specific settings before the code inprogram-filenameruns.The
gui?argument indicates if a MrEd or MzScheme stand-alone executable is created.The
use-copy?argument indicates if the initial namespace should be populated withnamespace-require/copyornamespace-require.