From: Pietro Abate <abate@discus.anu.edu.au>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Caml4p... help
Date: Wed, 9 Oct 2002 15:46:04 +1000 [thread overview]
Message-ID: <20021009054604.GA18356@zed> (raw)
In-Reply-To: <1BC7BF40-DB38-11D6-8FB2-00039375801A@yahoo.com>
thank you for you help... but I'm still missing something.
I want to produce a let statement. However my code produces
something like that:
let _ = let pc = `Forall [|`Rule "a"; `Rule "b"; `Rule "c"|] in pc
that is not really helpful. I suppose the problem lays in the level
declaration (I used expr : LEVEL "top") or in the quotation iteself (I
used <:expr< let $lid:n$ = $s$ in $lid:n$>>).
I don't quite understand the quotation syntax. They are written in the
revised syntax, so they don't permit to write something like "let a =
10;;", but there are not "value" statement to declare a binding.
how can I transform my declaration
str pc : [a;b;c];;
in something like that
let pc = `Forall [|`Rule "a"; `Rule "b"; `Rule "c"|];;
?
My final goal is to use camlp4 to simplify and extend the ocaml syntax
to write simple programs that I'll use to feed a virtual machine...
thanks,
p
On Tue, Oct 08, 2002 at 11:35:08PM -0400, jehenrik wrote:
> str pc : [a;b;c];;
> # - : _[> `Forall of _[> `Rule of string] array] =
> `Forall [|`Rule "a"; `Rule "b"; `Rule "c"|]
--
pgp key: 1024D/8A091922 2000-10-18 Pietro Abate <abate@arp.anu.edu.au>
Key fingerprint = 5111 D91B 5E0C 5CE6 FDA3 5EF4 6120 E18E 8A09 1922
public key avalaible via public key server at wwwkeys.eu.pgp.net
-------------------
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
next prev parent reply other threads:[~2002-10-09 5:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-09 1:50 Pietro Abate
2002-10-09 3:35 ` jehenrik
2002-10-09 5:46 ` Pietro Abate [this message]
2002-10-09 11:53 ` Daniel de Rauglaudre
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=20021009054604.GA18356@zed \
--to=abate@discus.anu.edu.au \
--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