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: 2010-09-30 18:24:17 +0200 (Do, 30. Sep 2010) $ ($Revision: 616 $)
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