File: doc_script_reserved.h

package info (click to toggle)
angelscript 2.35.1%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,388 kB
  • sloc: cpp: 71,969; asm: 1,558; makefile: 665; xml: 214; javascript: 42; python: 22; ansic: 22; sh: 7
file content (177 lines) | stat: -rw-r--r-- 2,495 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
/**

\page doc_reserved_keywords 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.

<table cellspacing=0 cellpadding=0 border=0>
<tr>
<td width=100 valign=top><code>
and<br>
abstract*<br>
auto<br>
bool<br>
break<br>
case<br>
cast<br>
catch<br>
class<br>
const<br>
continue<br>
default<br>
do<br>
</code></td>
<td width=100 valign=top><code>
double<br>
else<br>
enum<br>
explicit*<br>
external*<br>
false<br>
final*<br>
float<br>
for<br>
from*<br>
funcdef<br>
function*<br>
get*<br>
</code></td>
<td width=100 valign=top><code>
if<br>
import<br>
in<br>
inout<br>
int<br>
interface<br>
int8<br>
int16<br>
int32<br>
int64<br>
is<br>
mixin<br>
namespace<br>
</code></td>
<td width=100 valign=top><code>
not<br>
null<br>
or<br>
out<br>
override*<br>
private<br>
property*<br>
protected<br>
return<br>
set*<br>
shared*<br>
super*<br>
switch<br>
</code></td>
<td width=100 valign=top><code>
this*<br>
true<br>
try<br>
typedef<br>
uint<br>
uint8<br>
uint16<br>
uint32<br>
uint64<br>
void<br>
while<br>
xor<br>
</code></td>
</tr>
</table>

<small>* Not really a reserved keyword, but is recognized by the compiler as a built-in keyword.</small>

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

<table cellspacing=0 cellpadding=0 border=0>
<tr>
<td width=100 valign=top><code>
\*<br>
\**<br>
/<br>
%<br>
+<br>
-<br>
&lt;=<br>
&lt;<br>
&gt;=<br>
&gt;<br>
(<br>
</code></td><td width=100 valign=top><code>
)<br>
==<br>
!=<br>
?<br>
:<br>
=<br>
+=<br>
-=<br>
\*=<br>
/=<br>
%=<br>
</code></td><td width=100 valign=top><code>
\**=<br>
++<br>
\--<br>
&<br>
,<br>
{<br>
}<br>
;<br>
|<br>
^<br>
</code></td><td width=100 valign=top><code>
~<br>
&lt;&lt;<br>
&gt;&gt;<br>
&gt;&gt;&gt;<br>
&=<br>
|=<br>
^=<br>
&lt;&lt;=<br>
&gt;&gt;=<br>
&gt;&gt;&gt;=<br>
</code></td><td width=100 valign=top><code>
.<br>
&amp;&amp;<br>
||<br>
!<br>
[<br>
]<br>
^^<br>
@ <br>
!is<br>
::<br>
</code></td>
</tr>
</table>

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

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

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.

*/