eval.icn: Procedure to evaluate string as a call

link eval
March 3, 1996; Ralph E. Griswold
This file is in the public domain.

This procedure analyzes a string representing an Icon function or
procedure call and evaluates the result.  Operators can be
used in functional form, as in "*(2,3)".

This procedure cannot handle nested expressions or control structures.

It assumes the string is well-formed.  The arguments can only be
Icon literals. Escapes, commas, and parentheses in strings literals
are not handled.

In the case of operators that are both unary and binary, the binary
form is used.

Source code | Program Library Page | Icon Home Page