making code compatible with the GOLD Parser

Using the specs from the reference parser,
factored the goto movement out of the next_action phase,
but reducing after a terminal has been found.
It still fails if the goto table has been overwritten.