A graminivorous animal eats grass or the seeds of grass. Horses are graminivorous: They graze on pasture grass and eat the grains and stems of oats, corn, and barley, all of which are grasses.
While the word graminivorous is not very common, you may encounter it in academic zoology and ecology research papers or in veterinary and agricultural literature. In ordinary speech and writing, you're more likely to see the word grazer, a term for animals that feed predominantly on grasses and other low-growing vegetation, or herbivorous, a more general word describing any plant-eater. The gramen in graminivorous is Latin for "grass," and the -vorous comes from a Latin word meaning "devouring."