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: 2002-10-22 (13:18)
From: Stefano Zacchiroli <zack@c...>
Subject: Re: [Caml-list] Camlp4 pretty print comments
On Tue, Oct 22, 2002 at 01:15:30PM +0200, Daniel de Rauglaudre wrote:
> Because comments are not represented in the syntax tree. To pretty
> print, Camlp4 reads the file again, using the locations inside the
> syntax tree to determine where the comments are located.

Why comments are not represented? It's because the lexer don't return
them or because the standard ocaml grammar rules skip them?

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


Stefano Zacchiroli - undergraduate student of CS @ Univ. Bologna, Italy | ICQ# 33538863 |
"I know you believe you understood what you think I said, but I am not
sure you realize that what you heard is not what I meant!" -- G.Romney
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: