SCSCP[Client]
ExtractAllowedHeads
Examine all OpenMath symbols that can be heads
Calling Sequence
Parameters
Description
Examples
ExtractAllowedHeads(response)
response
-
string; Raw reply from server in SCSCP format.
The ExtractAllowedHeads command returns a description of OpenMath symbols that are accepted as heads from the server's raw reply. The users can get the raw reply by specifying output = xml when the initial request is made.
NULL is returned if the reply from the server contains an error or is not a "procedure completed" message.
Note that this command is intended for advanced users of the package who wish to examine the reply in SCSCP format. Normal users do not need this command.
with⁡SCSCP:
with⁡Client:
result≔GetAllowedHeads⁡myfavorite.scscpserver.com,output=xml:
XMLToolsPrint⁡XMLToolsParseString⁡result
<OMOBJ> <OMATTR> <OMATP> <OMS cd = 'scscp1' name = 'call_id'/> <OMSTR>Hfq6mjRpov2011-01-2711:11:15</OMSTR> <OMS cd = 'scscp1' name = 'info_memory'/> <OMI>124248</OMI> <OMS cd = 'scscp1' name = 'info_runtime'/> <OMI>0</OMI> </OMATP> <OMA> <OMS cd = 'scscp1' name = 'procedure_completed'/> <OMA> <OMS cd = 'scscp2' name = 'symbol_set'/> <OMS cd = 'scscp_transient_maple' name = 'GeneralMapleService'/> <OMS cd = 'scscp_transient_maple' name = 'IntegerFactorization'/> </OMA> </OMA> </OMATTR> </OMOBJ>
ExtractAllowedHeads⁡result
scscp_transient_maple,GeneralMapleService,scscp_transient_maple,IntegerFactorization
See Also
SCSCP
SCSCP[Client][GetAllowedHeads]
Download Help Document