The syntax for AngelScript is very similar to that of C or other languages derived from it, such as C++, Java, Javascript or C#. If you are already familiar with any of these languages you should have no problem understanding the syntax of AngelScript.
As AngelScript was created to be an easy way to modify applications from outside the executable the language has the basic syntax and operators described in this manual. But the language can also be extended by the host application to include new data types and built in functions. You should read the manual for the application to know what extensions it brings.
AngelScript is not a type less language, as so many other scripting languages are. This design was chosen so that AngelScript can more efficiently communicate with the host application that it is extending.
Comments can be placed anywhere in the script code where whitespaces are
allowed. There are two types of comments available, the one line comment that
starts with a double slash (//
) and ends with a line break, and
the multiple lines comment that starts with a slash and a star (/*
)
and ends with a star and a slash (*/
). Comments can't be nested
as the compiler doesn't interpret characters between the starting and ending
tokens.