| 1 |
TSynEIScriptSyn {first Identifier is considered to be the Class Name } |
|---|
| 2 |
tk {second Identifier is considered to be the Identifier Prefix } |
|---|
| 3 |
IdentStart '_', 'a'..'z', 'A'..'Z':: '_', '0'..'9', 'a'..'z', 'A'..'Z':: |
|---|
| 4 |
|
|---|
| 5 |
TOKENTYPES |
|---|
| 6 |
Identifier |
|---|
| 7 |
Key Style=[fsBold] |
|---|
| 8 |
Skobki Style=[fsBold]|Foreground=clRed |
|---|
| 9 |
DateTypes Style=[fsBold]|Foreground=clMaroon |
|---|
| 10 |
Functions Style=[fsBold]|Foreground=clBlue |
|---|
| 11 |
Comment Style=[fsItalic]|Foreground=clNavy |
|---|
| 12 |
Number Style=[fsBold]|Foreground=clFuchsia |
|---|
| 13 |
StringValues Style=[fsBold]|Foreground=clGreen |
|---|
| 14 |
|><| |
|---|
| 15 |
|
|---|
| 16 |
KEYS { all between KEYS and |><| is considered to be a keyword } |
|---|
| 17 |
Script |
|---|
| 18 |
GlobalVars |
|---|
| 19 |
DeclareScript |
|---|
| 20 |
if |
|---|
| 21 |
then |
|---|
| 22 |
WorldScript |
|---|
| 23 |
For |
|---|
| 24 |
NULL |
|---|
| 25 |
|><| |
|---|
| 26 |
|
|---|
| 27 |
KEYS DateTypes { all between KEYS and |><| is considered to be a keyword } |
|---|
| 28 |
object |
|---|
| 29 |
group |
|---|
| 30 |
float |
|---|
| 31 |
string |
|---|
| 32 |
|><| |
|---|
| 33 |
|
|---|
| 34 |
KEYS Functions { all between KEYS and |><| is considered to be a keyword } |
|---|
| 35 |
ActivateTrap |
|---|
| 36 |
Add |
|---|
| 37 |
AddLoot |
|---|
| 38 |
AddMob |
|---|
| 39 |
AddObject |
|---|
| 40 |
AddRectToArea |
|---|
| 41 |
AddRoundToArea |
|---|
| 42 |
AddUnitToParty |
|---|
| 43 |
AddUnitToServer |
|---|
| 44 |
AddUnitUnderControl |
|---|
| 45 |
AlarmPosX |
|---|
| 46 |
AlarmPosY |
|---|
| 47 |
AlarmTime |
|---|
| 48 |
Any |
|---|
| 49 |
AttachParticles |
|---|
| 50 |
AttachParticleSource |
|---|
| 51 |
Attack |
|---|
| 52 |
BlockUnit |
|---|
| 53 |
Cast |
|---|
| 54 |
CastSpellPoint |
|---|
| 55 |
CastSpellUnit |
|---|
| 56 |
ConsoleFloat |
|---|
| 57 |
ConsoleString |
|---|
| 58 |
CopyItems |
|---|
| 59 |
CopyLoot |
|---|
| 60 |
CopyStats |
|---|
| 61 |
Crawl |
|---|
| 62 |
CreateFX |
|---|
| 63 |
CreateFXSource |
|---|
| 64 |
CreateLightning |
|---|
| 65 |
CreateParticleSource |
|---|
| 66 |
CreateParty |
|---|
| 67 |
CreatePointLight |
|---|
| 68 |
CreateRandomizedFXSource |
|---|
| 69 |
DeleteArea |
|---|
| 70 |
DeleteFXSource |
|---|
| 71 |
DeleteLightning |
|---|
| 72 |
DeleteParticleSource |
|---|
| 73 |
DeletePointLight |
|---|
| 74 |
DistanceUnitPoint |
|---|
| 75 |
DistanceUnitUnit |
|---|
| 76 |
Div |
|---|
| 77 |
EnableLever |
|---|
| 78 |
EraseQuestItem |
|---|
| 79 |
Every |
|---|
| 80 |
FixItems |
|---|
| 81 |
FixWorldTime |
|---|
| 82 |
Follow |
|---|
| 83 |
GetAIClass |
|---|
| 84 |
GetBSZValue |
|---|
| 85 |
GetDiplomacy |
|---|
| 86 |
GetFutureX |
|---|
| 87 |
GetFutureY |
|---|
| 88 |
GetLeader |
|---|
| 89 |
GetLeverState |
|---|
| 90 |
GetLootItemsCount |
|---|
| 91 |
GetMercsNumber |
|---|
| 92 |
GetMoney |
|---|
| 93 |
GetObject |
|---|
| 94 |
GetObjectByID |
|---|
| 95 |
GetObjectByName |
|---|
| 96 |
GetObjectID |
|---|
| 97 |
GetPlayer |
|---|
| 98 |
GetPlayerUnits |
|---|
| 99 |
GetUnitOfPlayer |
|---|
| 100 |
GetWorldTime |
|---|
| 101 |
GetX |
|---|
| 102 |
GetY |
|---|
| 103 |
GetZ |
|---|
| 104 |
GetZValue |
|---|
| 105 |
GiveDexterity |
|---|
| 106 |
GiveIntelligence |
|---|
| 107 |
GiveItem |
|---|
| 108 |
GiveMoney |
|---|
| 109 |
GiveQuestItem |
|---|
| 110 |
GiveSkill |
|---|
| 111 |
GiveStrength |
|---|
| 112 |
GiveUnitQuestItem |
|---|
| 113 |
GiveUnitSpell |
|---|
| 114 |
GodMode |
|---|
| 115 |
GroupAdd |
|---|
| 116 |
GroupCross |
|---|
| 117 |
GroupHas |
|---|
| 118 |
GroupSee |
|---|
| 119 |
GroupSize |
|---|
| 120 |
GroupSub |
|---|
| 121 |
GSDelVar |
|---|
| 122 |
GSGetVar |
|---|
| 123 |
GSSetVar |
|---|
| 124 |
GSSetVarMax |
|---|
| 125 |
Guard |
|---|
| 126 |
HaveItem |
|---|
| 127 |
HideObject |
|---|
| 128 |
HP |
|---|
| 129 |
Idle |
|---|
| 130 |
InflictDamage |
|---|
| 131 |
InvokeAlarm |
|---|
| 132 |
IsAlarm |
|---|
| 133 |
IsAlive |
|---|
| 134 |
IsCameraPlaying |
|---|
| 135 |
IsDead |
|---|
| 136 |
IsEnemy |
|---|
| 137 |
IsEqual |
|---|
| 138 |
IsEqualString |
|---|
| 139 |
IsGreater |
|---|
| 140 |
IsInArea |
|---|
| 141 |
IsInSquare |
|---|
| 142 |
IsLess |
|---|
| 143 |
IsNight |
|---|
| 144 |
IsPlayerInDanger |
|---|
| 145 |
IsPlayerInSafety |
|---|
| 146 |
IsUnitBlocked |
|---|
| 147 |
IsUnitInWater |
|---|
| 148 |
IsUnitVisible |
|---|
| 149 |
KillScript |
|---|
| 150 |
KillUnit |
|---|
| 151 |
LeaveToZone |
|---|
| 152 |
Lie |
|---|
| 153 |
Mana |
|---|
| 154 |
MaxHP |
|---|
| 155 |
MaxMana |
|---|
| 156 |
MoveParticleSource |
|---|
| 157 |
MovePointLight |
|---|
| 158 |
MoveToObject |
|---|
| 159 |
MoveToPoint |
|---|
| 160 |
Mul |
|---|
| 161 |
Not |
|---|
| 162 |
PlayAnimation |
|---|
| 163 |
PlayCamera |
|---|
| 164 |
PlayerSee |
|---|
| 165 |
PlayFX |
|---|
| 166 |
PlayMovie |
|---|
| 167 |
PlayMusic |
|---|
| 168 |
Qfinish |
|---|
| 169 |
QObjArea |
|---|
| 170 |
QObjGetItem |
|---|
| 171 |
QObjKillGroup |
|---|
| 172 |
QObjKillUnit |
|---|
| 173 |
QObjSeeObject |
|---|
| 174 |
QObjSeeUnit |
|---|
| 175 |
QObjUse |
|---|
| 176 |
QStart |
|---|
| 177 |
QuestComplete |
|---|
| 178 |
Random |
|---|
| 179 |
RecalcMercBriefings |
|---|
| 180 |
RedeployParty |
|---|
| 181 |
RemoveObject |
|---|
| 182 |
RemoveObjectFromServer |
|---|
| 183 |
RemoveParty |
|---|
| 184 |
RemoveQuestItem |
|---|
| 185 |
RemoveUnitFromControl |
|---|
| 186 |
RemoveUnitFromParty |
|---|
| 187 |
RemoveUnitFromServer |
|---|
| 188 |
ResetTarget |
|---|
| 189 |
Rest |
|---|
| 190 |
RotateTo |
|---|
| 191 |
Run |
|---|
| 192 |
RunWorldTime |
|---|
| 193 |
SendEvent |
|---|
| 194 |
SendStringEvent |
|---|
| 195 |
Sentry |
|---|
| 196 |
SetBackgroudColor |
|---|
| 197 |
SetCameraOrientation |
|---|
| 198 |
SetCameraPosition |
|---|
| 199 |
SetCP |
|---|
| 200 |
SetCPFast |
|---|
| 201 |
SetCurrentParty |
|---|
| 202 |
SetDiplomacy |
|---|
| 203 |
SetDirectionToObject |
|---|
| 204 |
SetEnemy |
|---|
| 205 |
SetParticleSourceSize |
|---|
| 206 |
SetPlayer |
|---|
| 207 |
SetPlayerAggression |
|---|
| 208 |
SetScience |
|---|
| 209 |
SetSpellAggression |
|---|
| 210 |
SetSunLight |
|---|
| 211 |
SetWaterLevel |
|---|
| 212 |
SetWind |
|---|
| 213 |
ShowBitmap |
|---|
| 214 |
ShowCredits |
|---|
| 215 |
Sleep |
|---|
| 216 |
SleepUntil |
|---|
| 217 |
SleepUntilIdle |
|---|
| 218 |
Standt |
|---|
| 219 |
StartAnimation |
|---|
| 220 |
Sub |
|---|
| 221 |
Sum |
|---|
| 222 |
SwitchLeverState |
|---|
| 223 |
SwitchLeverStateEx |
|---|
| 224 |
UMAg |
|---|
| 225 |
UMAggression |
|---|
| 226 |
UMClear |
|---|
| 227 |
UMCorpseWatcher |
|---|
| 228 |
UMFear |
|---|
| 229 |
UMFollow |
|---|
| 230 |
UMGuard |
|---|
| 231 |
UMGuardEx |
|---|
| 232 |
UMPatrol |
|---|
| 233 |
UMPatrolAddPoint |
|---|
| 234 |
UMPatrolAddPointLook |
|---|
| 235 |
UMPatrolClear |
|---|
| 236 |
UMPlayer |
|---|
| 237 |
UMRevenge |
|---|
| 238 |
UMSentry |
|---|
| 239 |
UMStandard |
|---|
| 240 |
UMSuspection |
|---|
| 241 |
UnitInSquare |
|---|
| 242 |
UnitSee |
|---|
| 243 |
WaitEndAnimation |
|---|
| 244 |
WaitSegment |
|---|
| 245 |
Walk |
|---|
| 246 |
WasLooted |
|---|
| 247 |
|><| |
|---|
| 248 |
|
|---|
| 249 |
CHARS |
|---|
| 250 |
|
|---|
| 251 |
'A'..'Z', 'a'..'z', '_':: Ident |
|---|
| 252 |
BeginProc |
|---|
| 253 |
fTokenID := IdentKind((fLine + Run)); |
|---|
| 254 |
inc(Run, fStringLen); |
|---|
| 255 |
//while Identifiers[fLine[Run]] do |
|---|
| 256 |
while FLine[Run] in ['A'..'Z', 'a'..'z', '_', '0'..'9'] do |
|---|
| 257 |
Inc(Run); |
|---|
| 258 |
EndProc |
|---|
| 259 |
|
|---|
| 260 |
'(', ')':: Skobki |
|---|
| 261 |
BeginProc |
|---|
| 262 |
Inc(Run); |
|---|
| 263 |
fTokenID := tkSkobki; |
|---|
| 264 |
while FLine[Run] in ['(', ')'] do |
|---|
| 265 |
begin |
|---|
| 266 |
Inc(Run); |
|---|
| 267 |
end; |
|---|
| 268 |
EndProc |
|---|
| 269 |
|
|---|
| 270 |
'0'..'9', '.':: Number |
|---|
| 271 |
BeginProc |
|---|
| 272 |
Inc(Run); |
|---|
| 273 |
fTokenID := tkNumber; |
|---|
| 274 |
while FLine[Run] in ['0'..'9', '.'] do |
|---|
| 275 |
begin |
|---|
| 276 |
Inc(Run); |
|---|
| 277 |
end; |
|---|
| 278 |
EndProc |
|---|
| 279 |
|
|---|
| 280 |
|><| |
|---|
| 281 |
|
|---|
| 282 |
ENCLOSEDBY |
|---|
| 283 |
|
|---|
| 284 |
Comment,CommentProc,//, |
|---|
| 285 |
StringValues,StringValuesProc,",", |
|---|
| 286 |
|><| |
|---|
| 287 |
|
|---|