Identifiers and Keywords
Identifiers are used for variable, task, function, and subroutine names. The first character of an identifier must be an upper or lower case letter or the underscore ('_'). Remaining characters may be letters, numbers, and underscores.
A number of tokens are reserved for use in the NBC language itself. These are called keywords and may not be used as identifiers. A complete list of keywords appears below:
add | sub | neg | mul |
div | mod | and | or |
xor | not | cmp | tst |
index | replace | arrsize | arrbuild |
arrsubset | arrinit | mov | set |
flatten | unflatten | numtostr | strtonum |
strcat | strsubset | strtoarr | arrtostr |
jmp | brcmp | brtst | syscall |
stop | exit | exitto | acquire |
release | subcall | subret | setin |
setout | getin | getout | wait |
gettick | thread | endt | subroutine |
follows | precedes | segment | ends |
typedef | struct | db | byte |
sbyte | ubyte | dw | word |
sword | uword | dd | dword |
sdword | udword | long | slong |
ulong | void | mutex | waitv |
call | return | abs | sign |
strindex | strreplace | strlen | shl |
shr | sizeof | compchk | compif |
compelse | compend | isconst | |
asl | asr | lsl | lsr |
rotl | rotr | start | stopthread |
priority | cmnt | fmtnum | compchktype |
float | wait2 | sqrt | waitv |
arrop | acos | asin | atan |
ceil | exp | floor | tan |
tanh | cos | cosh | log |
log10 | sin | sinh | trunc |
frac | atan2 | pow | muldiv |
acosd | asind | atand | tand |
tanhd | cosd | coshd | sind |
sinhd | atan2d | addrof |