From: Bruno.Verlyck@inria.fr
To: c_bauer@informatik.uni-kl.de
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] camlp4sch documentation
Date: Mon, 8 Mar 2004 12:46:08 +0100 [thread overview]
Message-ID: <200403081146.i28Bk8Bn007660@waco.inria.fr> (raw)
In-Reply-To: <m3znatsrm7.fsf@diebuntekuh.de> (c_bauer@informatik.uni-kl.de)
From: Christoph Bauer <c_bauer@informatik.uni-kl.de>
Date: Sat, 06 Mar 2004 20:27:44 +0100
As I recovered recently, camlp4 supports a scheme like syntax.
E.g.
camlp4o pr_scheme.cmo foo.ml
prints my source code in foo.ml in this syntax. Juchhu!
Unfortunately, google didn't find the location of documentation for
this extension :-(. Does anybody know anything of this extension?
Well, I do. Daniel did it for me nearly 2 years ago. I never saw any
documentation. I guess the way to learn about it is to read the
pretty-printed source of your code. Another is to read cstr.sml and
string13.sml (for which pa_scheme was developed) in
http://pauillac.inria.fr/cash/cstr/index.html
>From the top of my head:
- named let is implemented
- (proc) is the same as (proc ()) -- for better Scheme taste
- tuples are represented by (values ...) -- this is a `non-standard
implementation' of the real Scheme's values concept.
E.g. are scheme macros supported?
Definitely no. I had to first translate to a more standard syntax to
be able to use normal camlp4 macro facilities.
I have no idea if using some portable scheme macro system (such as
syntax-case) to make a source-to-source pass (one would need to have a
real Scheme around) would be feasible. But I'd be very interested if
someone makes something like this work. Introducing hygienic macros
in the OCaml world... :-0
Bruno.
-------------------
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
prev parent reply other threads:[~2004-03-08 11:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-06 19:27 Christoph Bauer
2004-03-08 11:46 ` Bruno.Verlyck [this message]
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=200403081146.i28Bk8Bn007660@waco.inria.fr \
--to=bruno.verlyck@inria.fr \
--cc=c_bauer@informatik.uni-kl.de \
--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