node-state-machine
Version:
State machine for NodeJS.
20 lines (14 loc) • 400 B
JavaScript
/* @flow */
// This file doesn't make sense.
// Just for testing new ideas.
import { Machine } from './model/Machine';
const machine = new Machine('A', 'B', 'C');
machine.from('A').to('B').default();
machine.from('B').to('C').default();
machine.from('C').to('A').default();
machine.finalize();
machine.process('')
.process('')
.process('')
.process('')
.process('');