caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Patrick M Doane <patrick@watson.org>
To: Michael Leary <leary@nwlink.com>
Cc: caml <caml-list@inria.fr>
Subject: Re: [Caml-list] unbound value Parser.main?
Date: Fri, 31 Aug 2001 12:01:27 -0400 (EDT)	[thread overview]
Message-ID: <Pine.BSF.3.96.1010831115945.6440G-100000@fledge.watson.org> (raw)
In-Reply-To: <20010831084706.A2176@ip178.usw22.rb1.bel.nwlink.com>

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


      reply	other threads:[~2001-08-31 16:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-31  1:46 Michael Leary
2001-08-31  2:19 ` Michael Leary
2001-08-31  2:30   ` Michael Leary
2001-08-31  2:35   ` Patrick M Doane
2001-08-31  9:42   ` Markus Mottl
2001-08-31 15:47     ` Michael Leary
2001-08-31 16:01       ` Patrick M Doane [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.BSF.3.96.1010831115945.6440G-100000@fledge.watson.org \
    --to=patrick@watson.org \
    --cc=caml-list@inria.fr \
    --cc=leary@nwlink.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).