Le vendredi 23 décembre 2011 à 09:51 +0100, Gabriel Scherer a écrit :
> Note that piping/redirection `camlp4o file.ml > foo` doesn't work as
> camlp4o sends a marshalled AST by default.
> An issue with camlp4 is that it can sometimes move comments a bit: the
> placement of comments in the reformatted source is approximative *with
> respect to whitespace* (you sometimes have a blank inserted between a
> phrase and the comment). That is not really an issue for the human
> reader, but it tends to confuse `ocamldoc`, which relies on whitespace
> heuristics to know which phrase a comment documents. You should think
> twice if you wish to use both camlp4 and ocamldoc at the same time.

Note that ocamldoc does not use the pretty-printed output of camlp4. It
uses locations in the ast and comments are fetched from the original
file.

Cheers,

-- 
Jérémie



-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to