interpe.icn: Program to interpret Icon expressions

December 30, 1991; Ralph E. Griswold
Requires: UNIX See also: interpp.icn
This file is in the public domain.
  This program is a crude but effective interpreter for Icon expressions.
Each line entered from standard input is presumed to be an Icon
expression, is wrapped with a main procedure, and written to a pipe
that compiles and executes the resulting program.

  If the expression is a generator, all its results are produced.
If the command-line option -e is given, the expression is echoed.

  This technique is, of course, inefficient and may be painfully
slow except on the fastest platforms. This technique is, however,
completely general and as correct as Icon itself.

  Note:  This programs creates files with the names stdin, stdin.u1,
and stdin.u2. It removes them before terminating, but, of course,
overwrites any pre-existing files by these names.

Source code | Program Library Page | Icon Home Page