From: vruz Date: 2004-11-03T12:48:51+09:00 Subject: Re: fsmgen 0.1 > I am pleased to announce the release of fsmgen. This is a class library > and generator for creating simple finite state machine. The application > is to make simple TCP / UDP servers easy to write. This is done using a > YAML file to define the server and then using a generator to create a > default server and client template. These templates are then modified to > add "real" responses, rather than the default of sending strings back. Great work, this is a nice addition that could well be (after polished and debugged to death, of course) part of the stdlib. That YAML code is the FSM definition, now... how do you jump from one state to another ? all in Ruby code ? Taking as an example this vending machine (sorry, in C# + XML) http://www.codeproject.com/csharp/xmlfsm.asp What would be the corresponding code in Ruby + YAML ? Thanks for your work, best, vruz