The usual way to invoke Bison is as follows:
Here filename.mly is the grammar file name. The parser file's name is made by replacing the .mly with .ml. Thus, the "ocamlyacc foo.mly" yields foo.ml.
Here is a list of options that can be used with Ocamlyacc:
By default, this option generates a file grammar.output. It contains parsing infomation such as a description of the parsing tables and a report on ambiguities in the grammar.
Change the name of the output files to fname.ml, fname.mli and fname.output.