THe dolmen_bin opam package installs a binary that can verify the lexing, parsing, and type-checking of your files.
dolmen_bin
Use dolmen --help for more information
dolmen --help