Perl: the Markov chain saw | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Relevant to sundialsvc4's comment "based only upon what it sees and upon the value of variables whose values can easily be printed", many textual state machine description syntaxes do not declare an explicit state variable. For example, in some dialects of Scheme, this:
defines a state machine equivalent to a Perl flip-flop. ("success" resets the state machine and returns true to the parent task.) In cond0 .. cond1 the states are anonymous, but cond0 is the "event" instigating the transition from the initial "inactive" state to the "active" state and cond1 is the event instigating the transition back to "inactive". In reply to Re^2: Multi-stage flip-flop?
by RonW
|
|