Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Maxence Guesdon <maxence.guesdon@inria.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Q: ocamldoc error, camlp4, syntax differences
Date: Fri, 23 Apr 2004 14:30:56 +0200	[thread overview]
Message-ID: <20040423143056.6d7826a7@tintin.inria.fr> (raw)
In-Reply-To: <m2u0zb9g05.fsf@cmpgw-ii-05.felk.cvut.cz>

Hello,

On 23 Apr 2004 11:54:02 +0200
Jan Kybic <kybic@fel.cvut.cz> wrote:

> Hello,
>         I am generating documentation for my Ocaml code with ocamldoc.
> 
> I have several questions:
> 
> 1) On some files, ocamldoc fails with:
> 
>       analyse_module: parsetree and typedtree don't match.
> 
>    What does this error message mean? I could not find it anywhere. 
>    If it is a bug, I can send the offending file to the responsible
>    person.

You can send the file to me, thanks. I already heard about a similar
bug and will investigate soon.

> 2) Some files are to be preprocessed by Camlp4 in order to use the
>    stream syntax. Is there a way to tell ocamldoc to preprocess only
>    some sources files? I am using OCamlMakefile and I set:
> 
>         OCAMLDOC = ocamlfind ocamldoc -package lacaml,str 

No you can't. But you can use the -dump and -load options to do
what you want:

ocamldoc -dump t.odoc -pp "...." <the files to preprocess>
ocamldoc -load t.odoc <the files you don't want to preprocess>

Moreover, you can use the -load option several times.
 
-- 
Maxence Guesdon

-------------------
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


  reply	other threads:[~2004-04-23 12:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-23  9:54 Jan Kybic
2004-04-23 12:30 ` Maxence Guesdon [this message]
     [not found]   ` <m2hdva968e.fsf@cmpgw-ii-05.felk.cvut.cz>
     [not found]     ` <20040423180508.02119dc3@tintin.inria.fr>
2004-04-27 15:07       ` Jan Kybic

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=20040423143056.6d7826a7@tintin.inria.fr \
    --to=maxence.guesdon@inria.fr \
    --cc=caml-list@inria.fr \
    /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