anScript

Native

nativeExecute(&var[] out, var.s com, var args, ...)

not available in anSript for Web

Execute native (shell) command com with parameters and store words from output in out, if out is var (has no value) do not store anything.

nativeImport(var.s libName, var.s instructionName)

not available in anSript for Web

Import instruction named instructionName from shared library named libName (library extension will be added automatically based on system: .dll for Windows, .so for Linux).

You shuld read about building anScript native library.


Example:

nativeExecute(myArray, dir.s)
nativeExecute(var, C:/my_executable.s, my_argument.s, 123.i)

nativeImport(myLib.s, doSomething.s)
doSomething()