From: Markus Mottl <markus@oefai.at>
To: OCAML <caml-list@inria.fr>
Subject: [Caml-list] pretty-printing with camlp4
Date: Tue, 5 Feb 2002 13:17:05 +0100 [thread overview]
Message-ID: <20020205121705.GC25187@chopin.ai.univie.ac.at> (raw)
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
next reply other threads:[~2002-02-05 12:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-05 12:17 Markus Mottl [this message]
2002-02-05 13:03 ` Daniel de Rauglaudre
2002-02-05 14:13 ` Remi VANICAT
2002-02-05 14:15 ` Markus Mottl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020205121705.GC25187@chopin.ai.univie.ac.at \
--to=markus@oefai.at \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox