I had a similar problem. The solution was to create another module which was opened inside the Parser module. This way you can add your own interface on top of the Parser/Lexer module. I hope this helps. Chris On 11/10/10 13:55, Basile Starynkevitch wrote: > On Mon, 11 Oct 2010 12:22:49 +0200 > oliver@first.in-berlin.de wrote: >> >> the header-section from ocamlyacc appears in the >> *.ml file of the parser, but not in the mli-file. > > > Maybe menhir is better in that respect (I don't know). Did you try it? > http://gallium.inria.fr/~fpottier/menhir/ > > > Cheers.