CLI class, available in: Command line interfaceCommand-line support functions.This class has 14 members:
sdleiF
string cmdhandlercmdhandler
int msgtype0 .. 1
  • 0 = Standard
  • 1 = Server style
  • Message type
    int quiet0 .. 1 (false/true)Quiet modeenabled by -Q
    multiline string scriptScript
    object stdin ROStandard input file
    object stdout ROStandard output file
    snoitcnuF
    function addMacro(string name, int numargs, string definition, string helptext)doesn't return a valueAdd macro
    function execute(string command)doesn't return a valueExecute
    function findAndExpandMacro(string text)returns stringFind and expand macro
    function listMacros()doesn't return a valueList macros
    function print(string text)doesn't return a valueprint()
    function println(string text)doesn't return a valueprintln()
    function quit()Quit
    function removeMacro(string name, int numargs)doesn't return a valueRemove macro(numargs==-2) means remove all macros matching the name, otherwise only one definition is removed
    Global context>>Experiment definition>>Command line interface