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 CAA10481; Tue, 9 Dec 2003 02:27:50 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id CAA09483 for ; Tue, 9 Dec 2003 02:27:49 +0100 (MET) Received: from swordfish.cs.caltech.edu (swordfish.cs.caltech.edu [131.215.44.124]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id hB91Rm111421 for ; Tue, 9 Dec 2003 02:27:48 +0100 (MET) Received: from cs.caltech.edu (wasco.cs.caltech.edu [131.215.44.173]) by swordfish.cs.caltech.edu (Postfix) with ESMTP id 2DF6BDF215 for ; Mon, 8 Dec 2003 17:27:46 -0800 (PST) Message-ID: <3FD52512.3010207@cs.caltech.edu> Date: Mon, 08 Dec 2003 17:27:46 -0800 From: Aleksey Nogin Organization: California Institute of Technology, Computer Science Department User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031030 X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: caml-list@inria.fr Subject: [Caml-list] Announcing an improved version of the pa_macro package. Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Loop: caml-list@inria.fr X-Spam: no; 0.00; camlp:01 descend:01 ifndef:01 cvsweb:01 util:01 docaml:01 626:99 ifdef:01 ifdef:01 substituting:98 mainstream:01 caltech:01 caltech:01 patches:02 directive:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I have added a number of improvements to the pa_macro package that was added to camlp4 distribution recently. The improvements include: - Allow multiple definitions inside a single top-level IFDEF. - Support INCLUDE directive that allows including "header" files with macro definitions. - Support "local" (not just top-level) macro definitions. - Support a "NOTHING" macro that allows for optional expressions and function arguments. - Descend (instead of skipping) into "try..with..", "do" and function expressions when substituting for macro arguments. - Allow omiting "ELSE" branches in expressions. - Use a more descriptive "ENDIF" instead of "END" at the end of "IFDEF"/"IFNDEF" - Other minor improvements. The new pa_macro package can be downloaded/browsed at http://cvs.metaprl.org:12000/cvsweb/metaprl/util/pa_macro.ml?only_with_tag%3Docaml_3_07 You can also see the patches responsible for individual new features at the above location. P.S. I have filed PR #1901, PR #1902, PR #1904, PR #1905, PR #1907 and PR #1908 asking for these changes to be accepted into the mainstream distribution. -- Aleksey Nogin Home Page: http://nogin.org/ E-Mail: nogin@cs.caltech.edu (office), aleksey@nogin.org (personal) Office: Jorgensen 70, tel: (626) 395-2907 ------------------- 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