CreateNewState Automaton function for creating a new state 'state'.
(state int, at map[int]map[uint8]int)
| 109 | |
| 110 | // CreateNewState Automaton function for creating a new state 'state'. |
| 111 | func CreateNewState(state int, at map[int]map[uint8]int) { |
| 112 | at[state] = make(map[uint8]int) |
| 113 | } |
| 114 | |
| 115 | // CreateTransition Creates a transition for function σ(state,letter) = end. |
| 116 | func CreateTransition(fromState int, overChar uint8, toState int, at map[int]map[uint8]int) { |