Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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
> 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