From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA21077; Tue, 22 Oct 2002 15:44:48 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA20898 for ; Tue, 22 Oct 2002 15:44:47 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g9MDik512305 for ; Tue, 22 Oct 2002 15:44:47 +0200 (MET DST) Received: from santenay.inria.fr (santenay.inria.fr [128.93.8.59]) by pauillac.inria.fr (8.7.6/8.7.3) with SMTP id PAA21553 for ; Tue, 22 Oct 2002 15:44:46 +0200 (MET DST) Date: Tue, 22 Oct 2002 15:44:46 +0200 From: Maxence Guesdon To: caml-list@inria.fr Subject: Re: [Caml-list] Camlp4 pretty print comments Message-Id: <20021022154446.66566da7.maxence.guesdon@inria.fr> In-Reply-To: <20021022131838.GB23724@cs.unibo.it> References: <20021022111642R.garrigue@kurims.kyoto-u.ac.jp> <20021022131530.A3558@verdot.inria.fr> <20021022131838.GB23724@cs.unibo.it> Organization: INRIA X-Mailer: Sylpheed version 0.8.3claws (GTK+ 1.2.10; ) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > > 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)? Yes. -- Maxence Guesdon ------------------- 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