<s>
MexScript	B-Language
is	O
a	O
multi-paradigm	O
computer	O
scripting	B-Language
language	I-Language
used	O
in	O
a	O
number	O
of	O
game	O
resource	O
archive	O
file	O
handlers	O
.	O
</s>
<s>
It	O
was	O
originally	O
created	O
for	O
the	O
16-bit	O
command-line	B-Device
tool	I-Device
multiex	O
,	O
and	O
later	O
32-bit	O
versions	O
of	O
MultiEx	B-Application
Commander	I-Application
.	O
</s>
<s>
The	O
MexScript	B-Language
has	O
since	O
become	O
one	O
of	O
the	O
standards	O
to	O
process	O
game	O
archives	O
,	O
as	O
is	O
indicated	O
by	O
the	O
implementation	O
of	O
the	O
script	O
(	O
also	O
referred	O
to	O
as	O
multiex	O
,	O
MexCom3	O
,	O
BMS	O
)	O
in	O
similar	O
programs	O
,	O
such	O
as	O
Dragon	O
UNpack	O
,	O
Game	O
Extractor	O
,	O
FusePAK	O
,	O
and	O
the	O
more	O
recent	O
dialect	O
QuickBMS	B-Language
.	O
</s>
<s>
MexScript	B-Language
was	O
created	O
in	O
1997	O
for	O
multiex	O
by	O
Mike	O
Zuurman	O
and	O
fed	O
to	O
the	O
tool	O
using	O
.INI	O
files	O
.	O
</s>
<s>
The	O
script	O
was	O
improved	O
upon	O
in	O
later	O
releases	O
of	O
MultiEx	B-Application
Commander	I-Application
.	O
</s>
<s>
The	O
name	O
stems	O
from	O
the	O
abbreviation	O
of	O
multiex	O
to	O
'	O
mex	O
 '	O
,	O
though	O
it	O
is	O
also	O
referred	O
to	O
as	O
Binary	O
MultiEx	O
Script	O
(	O
BMS	O
)	O
which	O
in	O
essence	O
is	O
a	O
compiled	O
version	O
of	O
MexScript	B-Language
.	O
</s>
<s>
MexScript	B-Language
is	O
interpreted	O
by	O
a	O
Dynamic-link	O
library	O
called	O
"	O
multiex.dll	O
"	O
for	O
the	O
Windows	O
version	O
of	O
MultiEx	B-Application
Commander	I-Application
,	O
and	O
a	O
public	O
version	O
was	O
released	O
on	O
the	O
24th	O
of	O
July	O
2003	O
.	O
</s>
<s>
Besides	O
MultiEx	B-Application
Commander	I-Application
,	O
the	O
MexScript	B-Language
has	O
been	O
implemented	O
in	O
a	O
number	O
of	O
other	O
applications	O
.	O
</s>
<s>
The	O
scripting	B-Language
language	I-Language
itself	O
has	O
been	O
implemented	O
in	O
the	O
linux	O
tool	O
Fusepak	O
and	O
the	O
Java	B-Language
application	I-Language
Game	O
Extractor	O
.	O
</s>
<s>
A	O
script	O
exists	O
to	O
convert	O
MexScript	B-Language
into	O
Python	B-Language
for	O
OpenMEX	O
.	O
</s>
<s>
There	O
is	O
also	O
a	O
dialect	O
of	O
MexScript/BMS	O
called	O
QuickBMS	B-Language
,	O
that	O
first	O
appeared	O
on	O
the	O
Xentax	O
Foundation	O
's	O
Game	O
Research	O
Forum	O
on	O
April	O
16	O
,	O
2009	O
.	O
</s>
<s>
MexScript	B-Language
is	O
a	O
domain	O
specific	O
,	O
structured	B-Language
functional	B-Language
scripting	B-Language
language	I-Language
designed	O
for	O
the	O
end-user	O
.	O
</s>
<s>
The	O
purpose	O
of	O
writing	O
in	O
the	O
MexScript	B-Language
scripting	B-Language
language	I-Language
is	O
to	O
manipulate	O
the	O
contents	O
of	O
GRAs	O
in	O
order	O
to	O
MOD	O
a	O
computer	O
game	O
.	O
</s>
<s>
Extensive	O
descriptions	O
of	O
MexScript	B-Language
are	O
found	O
on	O
the	O
web	O
sites	O
of	O
various	O
implementations	O
,	O
most	O
notably	O
MultiEx	B-Application
Commander	I-Application
and	O
QuickBMS	B-Language
.	O
</s>
<s>
The	O
last	O
release	O
of	O
the	O
16-bit	O
implementation	O
in	O
1998	O
of	O
MultiEx	B-Application
Commander	I-Application
featured	O
statements	O
and	O
commands	O
as	O
follows	O
:	O
</s>
<s>
Later	O
dialects	O
as	O
implemented	O
by	O
MultiEx	B-Application
Commander	I-Application
or	O
QuickBMS	B-Language
offer	O
more	O
functionality	O
.	O
</s>
<s>
MexScript	B-Language
for	O
MultiEx	B-Application
Commander	I-Application
has	O
the	O
following	O
:	O
</s>
<s>
All	O
variables	O
can	O
be	O
changed	O
at	O
run-time	O
,	O
allowing	O
for	O
self-modifying	B-Application
code	I-Application
.	O
</s>
<s>
The	O
scripting	B-Language
language	I-Language
typically	O
outputs	O
a	O
list	O
of	O
files	O
contained	O
in	O
a	O
game	O
resource	O
archive	O
,	O
along	O
with	O
the	O
offsets	O
and	O
sizes	O
,	O
along	O
with	O
information	O
on	O
their	O
name	O
and	O
putative	O
compression	O
.	O
</s>
<s>
This	O
is	O
done	O
in	O
32-bit	O
MultiEx	B-Application
Commander	I-Application
and	O
other	O
implementations	O
using	O
the	O
Log	O
statement	O
,	O
or	O
CLog	O
statement	O
.	O
</s>
<s>
MexScript	B-Language
provides	O
several	O
common	O
control	O
structures	O
.	O
</s>
<s>
Recursion	O
is	O
MexScript	B-Language
's	O
preferred	O
processing	O
paradigm	O
.	O
</s>
<s>
This	O
list	O
would	O
then	O
be	O
fed	O
to	O
MultiEx	B-Application
Commander	I-Application
,	O
or	O
similar	O
tools	O
.	O
</s>
<s>
The	O
QuickBMS	B-Language
dialect	O
also	O
supports	O
C-style	O
(/*	O
...	O
*	O
/	O
)	O
and	O
C++	O
-style	O
(//	O
)	O
comments	O
.	O
</s>
