tokenizing code that errors