List of Import References :
See BOOL
See Com
See DENOTATION
See Nat
See Option
See Seq
See Void
This structure defines abbreviations for the instance com[void]
of the command monad. We call such an instance an action.
SIGNATURE ComAction
$Date: 1998/06/16 16:00:16 $ ($Revision: 1.1.1.1 $)
IMPORT Void ONLY void Com[void] ONLY com
The following constant equals to yield(okay(nil))
:
FUN done: com[void]
The command below repeats the given action forever:
FUN forever: com[void] -> com[void]
If condition holds, evaluate denotation and fail with this error message.
FUN -!-> : bool ** (() -> denotation) -> com[void]
Perform action only if condition holds
FUN -?-> : bool ** (() -> com[void]) -> com[void]
next node: ComCheck,
prev node: Random,
up to node: Subsystem Commands