[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

7.3 Stackmachine commands

The stackmachine commands are provided to request a server to execute various operations. They are automatically sent by built-in functions of Asir, but one often has to send them manually. They are represented by 32bit integers. One can send them by calling ox_push_cmd(). Typical stackmachine commands are as follows. SM_xxx=yyy means that SM_xxx is a mnemonic and that yyy is its value.

SM_popSerializedLocalObject=258

An object not necessarily defined as CMO is popped from the stack and is sent to the client. This is available only on ‘ox_asir’.

SM_popCMO=262

A CMO object is popped from the stack and is sent to the client.

SM_popString=263

An object is popped from the stack and is sent to the client as a readable string.

SM_mathcap=264

The server’s mathcap is pushed to the stack.

SM_pops=265

Objects are removed from the stack. The number of object to be removed is specified by the object at the top of the stack.

SM_setName=266

A variable name is popped form the stack. Then an object is popped and it is assigned to the variable. This assignment is done by the local language of the server.

SM_evalName=267

A variable name is popped from the stack. Then the value of the variable is pushed to the stack.

SM_executeStringByLocalParser=268

A string popped from the stack is parsed and evaluated. The result is pushed to the stack.

SM_executeFunction=269

A function name, the number of arguments and the arguments are popped from the stack. Then the function is executed and the result is pushed to the stack.

SM_beginBlock=270

It indicates the beginning of a block.

SM_endBlock=271

It indicates the end of a block.

SM_shutdown=272

It shuts down communications and terminates servers.

SM_setMathcap=273

It requests a server to register the data at the top of the stack as the client’s mathcap.

SM_getsp=275

The number of objects in the current stack is pushed to the stack.

SM_dupErrors=276

The list of all the error objects in the current stack is pushed to the stack.

SM_nop=300

Nothing is done.


[ << ] [ < ] [ Up ] [ > ] [ >> ]

This document was generated on December 22, 2024 using texi2html 5.0.