Small simulator for finit statemachines provided as a table