LIBCOURSE-UTILS(3)

NAME
id, succ, plus, delta, prefix, tail - KRoC course library basic cycles

SYNOPSIS
#USE "course.lib"
kroc -lcourse

PROC id (CHAN INT in?, out!)
PROC succ (CHAN INT in?, out!)
PROC plus (CHAN INT in.1?, in.2?, out!)
PROC delta (CHAN INT in?, out.1?, out.2!)
PROC prefix (VAL INT n, CHAN INT in?, out!)
PROC tail (CHAN INT in?, out!)

DESCRIPTION

These PROCs provide basic cyclic processes (non-terminating).

id provides a simple (single) buffer process, copying input from in to out.

succ implements a successor process. Data from in is (single) buffered, incremented, and output to out.

plus inputs values from its in.1 and in.2 channels, in parallel, then outputs the sum on out.

delta inputs a value on its in channel, then outputs it in parallel to out.1 and out.2.

prefix initially outputs n on the out channel, then becomes the id process (forever copying input to output).

tail initially inputs and discards a value from its in channel, then becomes the id process.

NOTES
The processes that perform arithmetic are sensitive to overflow.

AUTHOR
This manual page is maintained by Fred Barnes <frmb@kent.ac.uk>. The documentation itself was largely extracted from the library sources.

SEE ALSO
kroc(1)

REPORTING BUGS
Please report bugs to <ofa-bugs@kent.ac.uk>

COPYRIGHT
Copyright © 1984 P.H.Welch

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA