File exprfile.icn

Summary

###########################################################################

	File:     exprfile.icn

	Subject:  Procedures to produce programs on the fly

	Author:   Ralph E. Griswold

	Date:     August 5, 1997

###########################################################################

   This file is in the public domain.

###########################################################################

	exprfile(exp, link, ...)
			produces a pipe to a program that writes all the
			results generated by exp.  The trailing arguments
			name link files needed for the expression.

			exprfile() closes any previous pipe it opened
			and deletes its temporary file.  Therefore,
			exprfile() cannot be used for multiple expression
			pipes.

			If the expression fails to compile, the global
			expr_error is set to 1; otherwise 0.

	exec_expr(expr_list, links[])
			generates the results of executing the expression
			contained in the lists expr_list with the specified
			links.

	plst2pstr(L)	converts the list of Icon programs lines in L to a
			string with separating newlines.

	pstr2plst(s)	converts the string of Icon program lines (separated
			by newlines) to a list of lines.

	ucode(file)	produces a ucode file from the Icon program in file.

###########################################################################

  Requires:  system(), pipes, /tmp

###########################################################################

  Links:  io

###########################################################################
Procedures:
exec_expr, exprfile, plst2pstr, pstr2plst, ucode

Global variables:
expr_error

Links:
io.icn

This file is part of the (main) package.

Source code.

Details
Procedures:

exec_expr(expr_list, links)

: execute expression in lists


exprfile(exp, links)

: pipe for Icon expression


plst2pstr(L)

: convert program list to string


pstr2plst(s)

: convert program string to list


ucode(file)

: create ucode file


Global variables:
expr_error


This page produced by UniDoc on 2021/04/15 @ 23:59:54.