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 MAA12747; Sun, 8 Sep 2002 12:07:54 +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 MAA12580 for ; Sun, 8 Sep 2002 12:07:53 +0200 (MET DST) Received: from smtp3.libero.it (smtp3.libero.it [193.70.192.127]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g88A7q125578 for ; Sun, 8 Sep 2002 12:07:53 +0200 (MET DST) Received: from dalamar.takhisis.org (62.98.126.104) by smtp3.libero.it (6.5.028) id 3D5121BE00A40996 for caml-list@inria.fr; Sun, 8 Sep 2002 12:07:52 +0200 Received: from lordsoth.takhisis.org (lordsoth.takhisis.org [192.168.1.119]) by dalamar.takhisis.org (8.12.6/8.12.6/Debian-2) with ESMTP id g88A7o3O005436 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=FAIL) for ; Sun, 8 Sep 2002 12:07:51 +0200 Received: from lordsoth.takhisis.org (lordsoth.takhisis.org [192.168.1.119]) by lordsoth.takhisis.org (8.12.6/8.12.6/Debian-2) with ESMTP id g88A7nQQ009988 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Sun, 8 Sep 2002 12:07:50 +0200 Received: (from zack@localhost) by lordsoth.takhisis.org (8.12.6/8.12.6/Debian-2) id g88A7ngN009986 for caml-list@inria.fr; Sun, 8 Sep 2002 12:07:49 +0200 Date: Sun, 8 Sep 2002 12:07:49 +0200 From: Stefano Zacchiroli To: caml-list@inria.fr Subject: Re: pa_ifdef [Was: Re: [Caml-list] autoconf and caml] Message-ID: <20020908100749.GB9958@cs.unibo.it> Mail-Followup-To: caml-list@inria.fr References: <20020905135720.D5343@pauillac.inria.fr> <20020905161617.A29272@kruuna.Helsinki.FI> <20020906104614.GE607@barcelona.lrde.epita.fr> <3D7889EA.8060406@cs.cornell.edu> <20020906130717.647bd532.maxence.guesdon@inria.fr> <20020906123117.GC20833@cs.unibo.it> <20020906145259.C27346@verdot.inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020906145259.C27346@verdot.inria.fr> User-Agent: Mutt/1.4i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Fri, Sep 06, 2002 at 02:52:59PM +0200, Daniel de Rauglaudre wrote: > Yes, it is possible. In pa_ifdef.ml, there is a call to the grammar > entry Pcaml.str_item: > If you prefer the "revised syntax", the syntax rule must be: > | sil = LIST1 [ x = Pcaml.str_item; ";" -> x ] -> Thanks for the hint. > I did not implement it in pa_ifdef.ml because of this difference > between "normal" and "revised" syntax. BTW, isn't possible to discriminate inside camlp4 if you are using the standard syntax or the revised one? I really think that the 'normal' handling of conditional compilation is a usefull feature to be distributed along with camlp4. Cheers. -- Stefano Zacchiroli - undergraduate student of CS @ Univ. Bologna, Italy zack@cs.unibo.it | ICQ# 33538863 | http://www.cs.unibo.it/~zacchiro "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 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