Run anScript interpreter in mode simillar to python interactive session. How to do it?
CAR
as a file name to anScript interpreter.or
Code at runtime
option in anScript IDE welcome screen.langDefines is mechanism developed to support global defines (per installation). langDefines.txt
is located in the same folder as anScript interpreter. It may be useful to shorten long instructions’ names.
consolePrint print
instructionExecuteInNewThread thread
print(langDefines_working.s)
thread(print, _and_threads_too.s)
How to use langDefines?
langDefines.txt
(require administrator privileges in Windows).or
Tools
> Edit langDefines
in anScript IDE (require administrator privileges in Windows).anScript Library Manager is package manager for anScript (like npm for Node.js).
or
Tools
> Library Manager
> Open in browser
.{anScript install path}/library
:or
Tools
> Library Manager
(or open anScriptLibraryManagerGUI.exe
directly), select library and click Install or update
.or
anScriptLibraryManager.exe
and type in filename.or
nativeExecute(var, anScriptLibraryManager.s, filename.ans.s)
(remember you can’t use <include(library/filename.ans)>
in the same file with nativeExecute
because include
as preparator command is processed before nativeExecute
). You can use structure such as (both files in the same folder):nativeExecute(var, anScriptLibraryManager.s, firstLib.ans.s)
nativeExecute(var, anScriptLibraryManager.s, secondLib.ans.s)
runtimeRun(<path> script.ans.s)
<include(library/firstLib.ans)>
<include(library/secondLib.ans)>
//Rest of script ...