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 NAA01139; Tue, 5 Feb 2002 13:17:08 +0100 (MET) 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 NAA01840 for ; Tue, 5 Feb 2002 13:17:07 +0100 (MET) Received: from fichte.ai.univie.ac.at (fichte.ai.univie.ac.at [131.130.174.156]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g15CH6H14850 for ; Tue, 5 Feb 2002 13:17:06 +0100 (MET) Received: from chopin.ai.univie.ac.at (root@chopin.ai.univie.ac.at [131.130.174.170]) by fichte.ai.univie.ac.at (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id NAA12899 for ; Tue, 5 Feb 2002 13:17:05 +0100 Received: (from markus@localhost) by chopin.ai.univie.ac.at (8.9.3/8.9.3/Debian 8.9.3-21) id NAA26880 for caml-list@inria.fr; Tue, 5 Feb 2002 13:17:05 +0100 Date: Tue, 5 Feb 2002 13:17:05 +0100 From: Markus Mottl To: OCAML Subject: [Caml-list] pretty-printing with camlp4 Message-ID: <20020205121705.GC25187@chopin.ai.univie.ac.at> Mail-Followup-To: OCAML Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.26i Organization: Austrian Research Institute for Artificial Intelligence Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, I would like to adapt pretty-printing of OCaml-sources with camlp4 to match my style. What would be the best way to go about this? Just copy e.g. camlp4/etc/pr_o.ml and change it to my needs? Or are there more convenient ways to parameterize the existing pretty-printers (quite complex stuff)? People might find a transition between syntaxes easier if they can parameterize pretty-printers for automatic conversion so that they end up with sources that match their style very closely. I have played around a bit with pretty-printing some of my existing sources and would say that translating them to e.g. revised syntax would be almost zero effort if I could easily tweak the pretty-printers a bit here and there. In fact, I have already seen more badly formatted OCaml-code written by humans, which indicates that feeding external sources through the pretty-printers might always be a good idea... ;) Regards, Markus Mottl -- Markus Mottl markus@oefai.at Austrian Research Institute for Artificial Intelligence http://www.oefai.at/~markus ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr