MxScript is an interpreted language with a syntax that is similar to C. MxScript provides the following benefits:
- Easy to learn
Syntax is similar to C.
Integers can contain 64-bit signed values and support all operations that C supports. There are only integer, double, bool, and string types.
Bugs in the script file do not cause a system crash.
Strings in MxScript are safer than in C because features not required for scripting have been removed. There is no use of pointers, structures, user defined functions, or arrays.
No compilation is required and fast turnarounds are possible. MxScript can be used interactively in a command-line interface.
Unlike many other scripting languages, performance was one of the main goals for MxScript.
The MxScript language can be invoked from the following initial situations:
A single command can be issued from the Model Debugger Output window.
A script containing multiple commands can be specified on the command line that starts Model Debugger.
A script containing multiple commands can be loaded into Model Debugger after it has started.