One who grinds wheat, or pounds a spice in a mortar, has transgressed the Torah melachah of tochein. Cutting a fruit or vegetable very finely is a toldah of tochein, but it is permitted when he cuts in order to eat at once, as Maran the Beit Yosef wrote, and as the Rema ruled. A grater may not be used even then. From the booklet of Rabbi David Shalom Naki, shlit"a.