how to build simple FSM using generators ?

Alan Kennedy alanmk at hotmail.com
Thu Sep 9 05:45:23 EDT 2004


[Joh]
> i've readed "Charming Python: Generator-based state machines"
> www-106.ibm.com/developerworks/ linux/library/l-pygen.html , but i
> still can not get the point on how using generator for FSM
> 
> i'm interested in a very simple FSM which would be able to recognize
> consecutive sequence of texts, please can someone give me a hint on
> how to do this using yield ?

Have you seen this old post of mine, which looks like it might be 
relevant to you.

http://groups.google.com/groups?selm=3ED622CA.4B01E3C1%40hotmail.com

regards,

-- 
alan kennedy
------------------------------------------------------
email alan:              http://xhaus.com/contact/alan



More information about the Python-list mailing list