Browse thread
[Caml-list] Possible bug in module and class?
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Daniel de Rauglaudre <daniel.de_rauglaudre@i...> |
| Subject: | Re: [Caml-list] Camlp4 pretty print comments |
Hi, On Mon, Oct 21, 2002 at 09:35:47PM -0700, Quetzalcoatl Bradley wrote: > > Why are comments not printed when the input is from standard input? 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. If the input file is standard input, it is not possible since it is not possible to read it twice. -- Daniel de RAUGLAUDRE daniel.de_rauglaudre@inria.fr http://cristal.inria.fr/~ddr/ ------------------- 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