Lines Matching refs:state
48 " a state machine with 8 states. Each state signifies the direction you
52 " The transition from state to state and the actions taken on each transition
53 " are given in the state table below.
59 " For each state we must consider the existence or not of a wall in a
63 " state direction vi commands
78 " this state and the NextChar is as given. The commands k, j, ll, hh move
81 " In the 'next state' column is given the new state of the machine after
84 " current state NextChar vi commands next state
120 " through the state table.
127 " Macro I sets up the state table and NextChar table at the end of the file.
129 " what state changes to make.
131 " The entries in the state table all begin with a key consisting of the
132 " letter 's', the current state and the NextChar. After this is the
133 " action to take in this state and after this is the next state to change to.
136 " letter 'n' and the current state. After this is the action to take to
137 " obtain NextChar - the character that must be examined to change state.
146 " s (State) - holds the state the machine is in
149 " n (NextChar) - holds the character we must examine to change state
167 " GYKeDP - print the state table and next char table at the end of the file
168 " 0S - initialise the state of the machine to E1
179 " for the current state
185 " GT$B$R - on bottom line, create a command to search the state table
186 " for the current state and NextChar
189 " next state into the State macro
190 " bX - and yank the action corresponding to this state table entry
196 " @m - execute the action associated with this state
223 " B - put the current state
267 " YKeDP - create the state table, NextChar table and initial state