[previous][up][top][index]
search for:

convert -- convert to engine format

convert (fmt,str) -- converts a string str containing data transmitted from the engine in the engine communication protocol. The argument fmt is a recursive description of the format to be used for the conversion.

The method named ConversionFormat is used to provide a conversion format

A format of the form

               singleton f
specifies that a sequence has been transmitted, each element of which should be converted with the format f. See transmitting a sequence.

A format of the form

               (g,x,y,z,...)
where g is a function, specifies that consecutive items are to be converted with the formats x,y,z,..., and the results of conversion are to be passed as arguments to the functin g for processing.

A format of the form

               (n,x,y,z,...)
where n is an integer, specifies that consecutive items are to be converted wtih the formats x,y,z,..., a total of n times. The results are to be placed in a sequence.

A format consisting of the symbol ConvertIntegerspecifies that an integer has been transmitted. See transmitting an integer.

Functions which assemble formats.

  • ConvertApply -- apply a function after specified engine format conversions
  • ConvertFixedRepeat -- convert a fixed length sequence of items from engine format
  • ConvertJoin -- convert several items from engine format
  • ConvertList -- convert a sequence of items from engine format
  • ConvertMissing -- a missing engine conversion format item
  • ConvertRepeat -- convert a sequence of items from engine format
  • A format is usually stored under the key ConvertToExpression in the apprpriate class.

    See also:

  • pop -- pop a value from the engine's stack

  • [previous][up][top][index]
    search for: