Begin Outputting Grammar

Most of the code is here. Some tweaking will be needed to define the required
variables. Also needs to properly deal with actually parsing things in the
switch statement.