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
[Caml-list] unbound value Parser.main?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-08-31 (16:01)
From: Patrick M Doane <patrick@w...>
Subject: Re: [Caml-list] unbound value Parser.main?
On Fri, 31 Aug 2001, Michael Leary wrote:

> Thanks for the replies. :)
> New problem:
> How do I reference functions in fbot.ml from parser.mly?  Do I have to put
> most of my program in the header/footer of the parser?

You'll have to make sure that fbot.ml is compiled before parser.mly in
your Makefile.  If fbot.ml calls the parser then you'll need to break the
recursive dependency into two modules.

After that, the parser can refer to the code in fbot.ml with a module
prefix (e.g.  Fbot.initialize).


Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr