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 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
|
/**
\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>
auto<br>
bool<br>
break<br>
case<br>
cast<br>
catch<br>
class<br>
const<br>
continue<br>
default<br>
</code></td>
<td width=100 valign=top><code>
do<br>
double<br>
else<br>
enum<br>
false<br>
float<br>
for<br>
foreach<br>
funcdef<br>
if<br>
import<br>
</code></td>
<td width=100 valign=top><code>
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>
private<br>
protected<br>
return<br>
switch<br>
true<br>
try<br>
</code></td>
<td width=100 valign=top><code>
typedef<br>
uint<br>
uint8<br>
uint16<br>
uint32<br>
uint64<br>
using<br>
void<br>
while<br>
xor<br>
</code></td>
</tr>
</table>
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.
<table cellspacing=0 cellpadding=0 border=0>
<tr>
<td width=100 valign=top><code>
abstract<br>
delete<br>
explicit<br>
</code></td>
<td width=100 valign=top><code>
external<br>
final<br>
from<br>
</code></td>
<td width=100 valign=top><code>
function<br>
get<br>
override<br>
</code></td>
<td width=100 valign=top><code>
property<br>
set<br>
shared<br>
</code></td>
<td width=100 valign=top><code>
super<br>
this<br>
</code></td>
</tr>
</table>
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>
<=<br>
<<br>
>=<br>
><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>
~<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>
&&<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.
*/
|