Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 664 Bytes

DEVELOPING.md

File metadata and controls

19 lines (15 loc) · 664 Bytes

Debugging Grammar Conflicts:

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.

Debugging the parser state at runtime:

If you set the environment variable as follows, the parser state will be printed out as it parses files.

export OCAMLRUNPARAM='p'

Testing:

Run the tests in the ./formatTest/ directory and observe differences in output. The test files contain the most obscure syntax forms intentionally.