ScriptName: The c-style script which the Executive will execute.
if, else, and else if constructs are available, but the construct if (boolean_value) is not. Instead, the construct if (boolean_value == true) must be used.Arrays exist, but they must be defined when they are declared, and all values must be of the same inherent type (int, float, char). For example:
my_array = {0.1, 1.2, 2.3};
There is a known bug where accessing an individual array value such as:
my_value = my_array[1];
will cause the next call of an MSF method to give a run-time error (regarding too many arguments). Therefore, it is best to only reference arrays as a whole.
MSF_HOME/PLATFORM/bin/Executive MSF_HOME/components/ExEC/scripts/test*.cThe test script files are commented and are self-explanatory.
/ ArgList.h // storage class header file ArgList.cpp // storage class code file FunctionLiaison.h // MSF method wrapper header file FunctionLiaison.cpp // MSF method wrapper code file Main.cpp // Main executable VariableLiaison.h // utility class header file VariableLiaison.cpp // utility class code file makefile // makefile exec.g // ANTLR grammar file (used to generate .cpp files) execAST.g // ANTLR grammar file (used to generate .cpp files) MyAST.h // ANTLR header file LangLexer.hpp // generated file LagLexer.cpp // generated file LandWalker.hpp // generated file LangWalker.cpp // generated file LandWalkerTokenTypes.hpp // generated file LangWalkerTokenTypes.cpp // generated file scripts/test*.c // script files (used for testing)
For detailed scenario files, see MSF_HOME/data/exec_scenario_*.c.
1.4.1