Navigation Home / Tags / FSM

ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

3
Date Submitted Thu. Apr. 12th, 2007 1:42 PM
Revision 1
Helper esumerfd
Tags dsl | FSM | groovy | Machines | State
Comments 1 comments
Try to create a DSL for a finite state machine.

Inspired by Chris vanBuskirk version on this site and the Ruby article at

http://www-128.ibm.com/developerworks/java/library/j-cb03137/index.html
2
Date Submitted Thu. Apr. 12th, 2007 11:23 AM
Revision 1
Beginner vbuskirk
Tags dsl | FSM | groovy | Machines | State
Comments 1 comments
/**
* GOAL: Write a quick-and-dirty DSL in Groovy that emulates Bruce Tate's
* example "acts_as_statemachine" Ruby code at
* http://www-128.ibm.com/developerworks/java/library/j-cb03137/index.html,
* within 20 minutes or less (i.e. steer clear of MOP-magic engineering ;).
*
* For more context, see the Apr'07 "Symbols" thread on the groovy-user mailing
* list.
*/