On Aug 24, 2011, at 10:55 AM, Edouard De Oliveira wrote: > > > On 8/21/11 11:48 PM, Alan D. Cabrera wrote: >> On Aug 21, 2011, at 11:39 AM, Edouard De Oliveira wrote: >> >> for mina 3 i indeed was wondering if somehow we could use @ to prevent >> bloated FSM declaration code and found this interesting article >which could >> be a good base to start with : >> http://weblogs.java.net/blog/carcassi/archive/2007/02/finite_state_ma_1.html > > > You can find a fast hack at the following pastebin url which shows how i > changed the original code of the article to add data dependent transitions : > http://pastebin.com/CjXjJ2Q1
I like the idea of returning a string to designate the next state. REgards, Alan
