Chapter 8. Debugging Your Parser

To debug the parser generated by ocamlyacc:

The parser prints messages about its actions such as shifting a token, reducing a rule.

You can find rule numbers and state numbers mentioned in the messages at the file grammar.output.