English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
my own exceptions from ocamlyacc?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-10-11 (13:24)
From: Chris Yocum <cyocum@g...>
Subject: Re: [Caml-list] my own exceptions from ocamlyacc?
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.


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.