Start implementing token parsing function.