[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Ah, those uninitiated people...
- From: Mark Hamburg <mark@...>
- Date: Thu, 14 Jan 2010 08:36:43 -0800
On Jan 14, 2010, at 8:05 AM, David Kastrup wrote:
> No, the whole "state machine" is one coroutine. You just program the
> control flow that is to be modelled by the state machine. Yield/resume
> pairs are used to get new input, and the input is processed with normal
> conditionals and other branches. Every code path containing a yield
> call corresponds to a state.
Which maps nicely to the state machine = regular language = structured programming equivalence, but I'm not sure it always maps well to the cases where one wants to use a state machine.
Mark
- References:
- Ah, those uninitiated people..., Alexander Gladysh
- Re: Ah, those uninitiated people..., Enrico Colombini
- Re: Ah, those uninitiated people..., Roberto Ierusalimschy
- Re: Ah, those uninitiated people..., Andrew Wilson
- Re: Ah, those uninitiated people..., Mark Hamburg
- Re: Ah, those uninitiated people..., steve donovan
- Re: Ah, those uninitiated people..., David Given
- Re: Ah, those uninitiated people..., Tony Finch
- Re: Ah, those uninitiated people..., Wesley Smith
- Re: Ah, those uninitiated people..., David Kastrup
- Re: Ah, those uninitiated people..., Jorge
- Re: Ah, those uninitiated people..., David Kastrup