As is explained in this section of the Menhir manual, Menhir and ocamlyacc do not augment the grammar with an end token on their own. That section will tell you quite a bit you will want to known. Indeed, Menhir has a wonderful manual which is very complete and very easy to read. I recommend it highly.
2 Likes