[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cameleon-dev] delayed mail
From: |
Maxence Guesdon |
Subject: |
Re: [cameleon-dev] delayed mail |
Date: |
Mon, 4 Aug 2003 08:42:56 +0200 |
> > I have a library that parses and pretty prints most of the rfc. I have
> > not released it because I do not know how to package it (I would like to
> > provide only one mli to open, but I don't know how to do that (except by
> > putting everything into one single file).
> >
> > If you want to play with it, I can do a quick archive. But it won't be
> > all clean and nice to use ;-)
> >
> > Alan
>
> I don't know either. But by browsing the source code of Maxence, he
> seems to be able to pack his module by using this :
> Assume we have A.ml and B.ml which needs to packed. Use C.ml to build it
> :
>
> in C.ml :
> module A = A
> module B = B
>
>
> Take a look at ocamlcvs for examples. The file ocamlcvs.ml is such a
> wrapper.
Yes, that's the way I do but the "main" .mli is a pain, since you have to
maintain the same code in a.mli and b.mli in c.mli.
I'm currently writing another library, and I chose to use the -pack
facility. I end up with the same kind of interface (my library module C
contains modules A and B) but there is not more "main" .mli to write. The
drawback is that ocamldoc does not (yet) handle the -pack option, so
I have a generated doc which refers to A.t instead of C.a.t, for example,
i.e. modules are not prefixed by the library "main" module.
> Anyway, i am interested in having your source. I have also a lot of
> coding to do to parse some RFCes. It would be kind to have some
> examples.
Alan, I propose that you work a little more "meta": please write a program
which parses RFCs and generate the corresponding OCaml code ;-)
Friendly,
- m
- Re: [cameleon-dev] delayed mail, (continued)
- Re: [cameleon-dev] delayed mail, Alan Schmitt, 2003/08/03
- Re: [cameleon-dev] delayed mail, Sylvain LE GALL, 2003/08/03
- Re: [cameleon-dev] delayed mail, Alan Schmitt, 2003/08/03
- Re: [cameleon-dev] delayed mail, Debian User, 2003/08/04
- Re: [cameleon-dev] delayed mail, Alan Schmitt, 2003/08/04
- Re: [cameleon-dev] delayed mail, Sylvain LE GALL, 2003/08/04
- Re: [cameleon-dev] delayed mail, Alan Schmitt, 2003/08/04
- Re: [cameleon-dev] delayed mail, Sylvain LE GALL, 2003/08/03
- Re: [cameleon-dev] delayed mail, Alan Schmitt, 2003/08/03
- Re: [cameleon-dev] delayed mail, Debian User, 2003/08/04
- Re: [cameleon-dev] delayed mail,
Maxence Guesdon <=
- Re: [cameleon-dev] delayed mail, Alan Schmitt, 2003/08/04
- Re: [cameleon-dev] delayed mail, Alan Schmitt, 2003/08/04