Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Possible bug in module and class?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Maxence Guesdon <maxence.guesdon@i...>
Subject: Re: [Caml-list] Camlp4 pretty print comments
> Why comments are not represented? It's because the lexer don't return
> them or because the standard ocaml grammar rules skip them?

Having comments in the syntex tree could be a pain since you can add comments where you want (in an expression, between phrases, ...). They are just skipped.

> If the first case does apply, is possible to add a camlp4 rule to
> retain them, right?
> BTW, does ocamldoc use the same trick (reading twice)?


Maxence Guesdon
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: