parser created to convert token stream into syntax tree