Run the main parser through menhir with the --explain
flag to have it print out
details about the conflict. menhir src/reason_parser.mly --explain
. The debug
information can be found at src/reason_parser.conflicts
.
If you set the environment variable as follows, the parser state will be printed out as it parses files.
export OCAMLRUNPARAM='p'
Run the tests in the ./formatTest/
directory and observe differences in
output. The test files contain the most obscure syntax forms intentionally.