Reordering walk logic methods according to grammar production sequences.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>