SHARE
TWEET

FSM_Table

a guest Jul 17th, 2011 98 Never
  1. struct StateMachine::branch StateMachine::transition_table_full[3][3] =
  2. {
  3.   {
  4.     {before, ' ', before, 0},
  5.     {before, '\n', before, &char_put(int c)},
  6.     {before, '\a', inside, &char_put(int c)}
  7.   },
  8.   {
  9.     {inside, ' ', after,  0},
  10.     {inside, '\n', before, &char_put(int c)},
  11.     {inside, '\a', inside, &char_put(int c)}
  12.   },
  13.   {
  14.     {after,  ' ', after,  0},
  15.     {after,  '\n', before, &char_put(int c)},
  16.     {after,  '\a', after,  0}
  17.   }
  18. };
RAW Paste Data
Top