/*-----calc.ced------
** calc.ced                                    by William Henning
**
** solve selected text, append result.
**
** To use this script, type in a mathematical equation, mark one
** end with 'Mark' and position the cursor at the other end.
** Then invoke this script with 'Send DOS/ARexx command'.
** The result of the equation will be inserted into your file.
** This is similar to the solve.ced script.
**
** This script requires CygnusEd Professional v3.5 (or later) to run.
**
 */

OPTIONS RESULTS

'COPY BLOCK'

STATUS BLOCKBUFFER

EXPR = 'OUT = ' RESULT

INTERPRET EXPR

TEXT ' = 'OUT
