Converts AST (abstract syntax tree) to JSON.
Cleanup.
Defines the grammar tokens.
Functions that use regex to create tokens.
Need to restructure data structure.