Constructing main parsing tables

Managed to create a subroutine to construct the LHS goto table and
lookahead action table, close to finishing compiler

- needs significant neatening up, commenting etc