build a basic token reader.