From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA15127; Fri, 31 Aug 2001 18:01:46 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA15275 for ; Fri, 31 Aug 2001 18:01:45 +0200 (MET DST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f7VG1i528927 for ; Fri, 31 Aug 2001 18:01:44 +0200 (MET DST) Received: from localhost (patrick@localhost) by fledge.watson.org (8.11.6/8.11.5) with SMTP id f7VG1RL08182; Fri, 31 Aug 2001 12:01:28 -0400 (EDT) (envelope-from patrick@watson.org) Date: Fri, 31 Aug 2001 12:01:27 -0400 (EDT) From: Patrick M Doane To: Michael Leary cc: caml Subject: Re: [Caml-list] unbound value Parser.main? In-Reply-To: <20010831084706.A2176@ip178.usw22.rb1.bel.nwlink.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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). Patrick ------------------- 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