anScript

Preparator commands

<include(path)>

not fully available in anScript for Web, can get files only from library/

Include antother source file (works like copy and paste before interpreting code); path is not a variable, it is simply text.


<define(name, value)>

Define (works like #define name value in C language).


<n>, <t>, <s>

Insert newline, tab or space character (works like copy and paste before interpreting code).

E.g. consolePrint(1<s>2.s), variableCreate(a,a<n>a<n>.s)


<path>

Insert a path built-in variable value (works like copy and paste before interpreting code).


<temp>

Insert a temp built-in variable value (works like copy and paste before interpreting code).


Example:

<define(a, 30.i)>
<define(print, consolePrint)>
print(a)
<include(<path> secondSource.ans)>
instructionFromSecondSource(Works_great.s)
fileReadWord(word, <path> text.txt.s, 1.i)