Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] mod_caml 1.0.0 and O'Caml 3.07 - cannot load Lexing
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-11-08 (16:52)
From: Mikael Brockman <phubuh@p...>
Subject: Re: [Caml-list] mod_caml 1.0.0 and O'Caml 3.07 - cannot load Lexing
> 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
> -- 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 <> 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

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: