Implemented abstract syntax tree, parser now works off this.