escript

Types


comment() = string()

emu_args() = string()

extract_option() = compile_source | {section, [section_name()]}

section() = shebang
                  | {shebang, shebang() | default | undefined}
                  | comment
                  | {comment, comment() | default | undefined}
                  | {emu_args, emu_args() | undefined}
                  | {source, file:filename() | binary()}
                  | {beam, file:filename() | binary()}
                  | {archive, zip:filename() | binary()}
                  | {archive, [zip_file()], [zip:create_option()]}

section_name() = shebang | comment | emu_args | body

shebang() = string()

zip_file() = file:filename()
                   | {file:filename(), binary()}
                   | {file:filename(), binary(), file:file_info()}

Functions


create(File::filename() (see module file) | binary, Options::[section()]) -> ok | {ok, binary()} | {error, term()}

extract(File::filename() (see module file), Options::[extract_option()]) -> {ok, [section()]} | {error, term()}

script_name() -> string()

start() -> no_return()

start(EscriptOptions::[string()]) -> no_return()

parse_file(File) -> term()