caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] strange behaviour of ocamldoc
@ 2004-09-14 17:47 Eugene Ossintsev
  2004-09-15 13:28 ` [Caml-list] Confused Jon Harrop
  0 siblings, 1 reply; 11+ messages in thread
From: Eugene Ossintsev @ 2004-09-14 17:47 UTC (permalink / raw)
  To: caml-list

Hello,

In OCaml 3.08.0 and 3.08.1 (not tested with the other versions) it seems 
that ocamldoc behaves strangely in the following case:

foo.mli:
--------
(** Supported URL schemes. *)
type url_scheme =
   | Http  (** Hypertext Transfer Protocol *)
   | Ftp   (** File Transfer protocol *)
   | File  (** Local file access *)

ocamldoc foo.mli writes the error message:

        foo.mli : lexing: empty token.

That error occurs if in the (** *)-comment of an enumerated type there 
exists a word (or, more exactly, a combination of letters) matching the 
name of the following enumerated type or a part of the name of that 
type. In the above example it is "File".

In other words, any of those combinations gives the error:

(** Comments *)
type my_type =
   | Aaa (** foo Bbb bar *)
   | Bbb (** blah-blah *)

(** Comments *)
type my_type =
   | Aaa (** foo Bbb bar *)
   | Bb  (** blah-blah *)

(** Comments *)
type my_type =
   | Aaa (** foo Bbb bar *)
   | B   (** blah-blah *)

Could you help me solve the problem? What am I doing wrong?

-- 
Eugene Ossintsev

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-09-15 18:42 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-14 17:47 [Caml-list] strange behaviour of ocamldoc Eugene Ossintsev
2004-09-15 13:28 ` [Caml-list] Confused Jon Harrop
2004-09-15 13:46   ` Michael
2004-09-15 13:51   ` Radu Grigore
2004-09-15 14:01   ` Brian Hurt
2004-09-15 14:13   ` Jon Harrop
     [not found]     ` <7f8e92aa04091507233d074f31@mail.gmail.com>
2004-09-15 14:23       ` Radu Grigore
2004-09-15 14:50         ` Virgile Prevosto
2004-09-15 14:57           ` Radu Grigore
2004-09-15 14:52   ` skaller
2004-09-15 18:42     ` William Lovas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).