parses a fair number of tokens