| Ocamlyacc Tutorial | ||
|---|---|---|
| <<< Previous | Next >>> | |
The usual way to invoke Bison is as follows:
ocamlyacc filename.mly |
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:
-v
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.
-bfname
Change the name of the output files to fname.ml, fname.mli and fname.output.
| <<< Previous | Home | Next >>> |
| Debugging Your Parser | License of This Document |