AngelScript
Loading...
Searching...
No Matches
Reserved keywords and tokens

These are the keywords that are reserved by the language, i.e. they can't be used by any script defined identifiers. Remember that the host application may reserve additional keywords that are specific to that application.

and
auto
bool
break
case
cast
catch
class
const
continue
default
do
double
else
enum
false
float
for
foreach
funcdef
if
import
in
inout
int
interface
int8
int16
int32
int64
is
mixin
namespace
not
null
or
out
private
protected
return
switch
true
try
typedef
uint
uint8
uint16
uint32
uint64
using
void
while
xor

The following keywords are context sensitive, i.e. depending on where they appear they will have a meaning to the compiler, but can otherwise be used as identifiers for functions and variables.

abstract
delete
explicit
external
final
from
function
get
override
property
set
shared
super
this

These are the non-alphabetical tokens that are also used in the language syntax.

*
**
/
%
+
-
<=
<
>=
>
(
)
==
!=
?
:
=
+=
-=
*=
/=
%=
**=
++
--
&
,
{
}
;
|
^
~
<<
>>
>>>
&=
|=
^=
<<=
>>=
>>>=
.
...
&&
||
!
[
]
^^
@
!is
::

Other than the above tokens there are also numerical, string, identifier, and comment tokens.

123456789
123.123e123
123.123e123f
0x1234FEDC
0d123987
0o1276
0b1010
'abc'
"abc"
"""heredoc"""
_Abc123
//
/*
*/

The characters space (32), tab (9), carriage return (13), line feed (10), and the UTF8 byte-order-mark (U+FEFF) are all recognized as whitespace.