caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Mikael Brockman <phubuh@phubuh.org>
To: Richard Jones <rich@annexia.org>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] mod_caml 1.0.0 and O'Caml 3.07 - cannot load Lexing
Date: 08 Nov 2003 17:52:12 +0100	[thread overview]
Message-ID: <87fzgyu7k3.fsf@igloo.phubuh.org> (raw)
In-Reply-To: <20031108145131.GB9211@redhat.com>

> On Sat, Nov 08, 2003 at 03:47:47PM +0100, Mikael Brockman wrote:
> > Yes, I'm using Lexing and Parsing.  See my recent self-reply.

First of all, my "recent self-reply" wasn't carbon copied to any one,
so you couldn't read it. :-) This is what I said:

> I got ahold of Kenn, and found out that he eventually managed to fix
> the problem by using some arbitrary values from Lexing and Parsing in
> mod_caml.ml -- like this:
> 
>   let () =
>     Callback.register "mod_caml_create_dir_config" create_dir_config;
> 
>     ...
> 
>     (* For some reason, we have to use Lexing and Parsing here to make
>        it load. *)
>     ignore (Lexing.dummy_pos);
>     ignore (Parsing.clear_parser);
> 
> I added those lines and recompiled, and now everything seems to work
> perfectly, but this feels very kludgy.


> Richard Jones <rich@annexia.org> writes:
> I'm not really familiar with these modules. They're part of standard
> OCaml? Do you have to link any special .cma in to use them ordinarily?

Lexing and Parsing are part of the standard OCaml, and are used by the
modules that ocamllex and ocamlyacc generate.  You don't have to link
any special .cma to use them.

--
Mikael Brockman
<phubuh@phubuh.org>

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  parent reply	other threads:[~2003-11-08 16:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-08 13:50 Mikael Brockman
2003-11-08 14:44 ` Richard Jones
     [not found]   ` <871xsix6gc.fsf@igloo.phubuh.org>
     [not found]     ` <20031108145131.GB9211@redhat.com>
2003-11-08 16:52       ` Mikael Brockman [this message]
2003-11-08 17:03         ` Richard Jones
2003-11-08 18:02   ` Benjamin Geer

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=87fzgyu7k3.fsf@igloo.phubuh.org \
    --to=phubuh@phubuh.org \
    --cc=caml-list@inria.fr \
    --cc=rich@annexia.org \
    /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).