From: Achim Blumensath <blume@diabolo.informatik.rwth-aachen.de>
To: caml-list@inria.fr
Subject: Re: [Caml-list] syntax
Date: Wed, 6 Feb 2002 13:53:29 +0100 [thread overview]
Message-ID: <20020206135329.A8026@diabolo.informatik.rwth-aachen.de> (raw)
In-Reply-To: <200202052147.g15LlVL25141@orchestra.cs.caltech.edu>; from mvanier@cs.caltech.edu on Tue, Feb 05, 2002 at 01:47:31PM -0800
Hello,
On Tue, Feb 05, 2002 at 01:47:31PM -0800, Michael Vanier wrote:
> I've looked at the revised syntax, and I like most of what I see (except
> for the use of x.val instead of !x).
Since I also dislike the syntax for references, I wrote the following
parser extension:
open Pcaml;
EXTEND
expr: LEVEL "~-"
[ [ "!"; x = expr -> <:expr< $x$.val >> ] ];
END;
That way, I can write
!x := !x + 1
which IMHO combines the benefites of both syntaxes.
Achim
--
________________________________________________________________________
| \_____/ |
Achim Blumensath \O/ \___/\ |
Mathematische Grundlagen der Informatik =o= \ /\ \|
www-mgi.informatik.rwth-aachen.de/~blume /"\ o----|
____________________________________________________________________\___|
-------------------
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 prev parent reply other threads:[~2002-02-06 17:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-05 21:47 Michael Vanier
2002-02-06 12:24 ` Daniel de Rauglaudre
2002-02-06 12:53 ` Achim Blumensath [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-10-11 11:34 [Caml-list] Threats on future of Camlp4 Kontra, Gergely
2002-10-11 16:36 ` [Caml-list] Syntax brogoff
[not found] <200202061059.g16Ax2n25555@concorde.inria.fr>
2002-02-06 12:09 ` Diego olivier FERNANDEZ PONS
[not found] <3C60E263.D2E35B3A@tsc.uc3m.es>
2002-02-06 10:08 ` Diego olivier FERNANDEZ PONS
2002-02-05 14:18 Gerard Huet
2002-02-05 14:49 ` Markus Mottl
2002-02-05 15:16 ` Jean-Francois Monin
2002-02-05 17:51 ` Diego olivier FERNANDEZ PONS
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=20020206135329.A8026@diabolo.informatik.rwth-aachen.de \
--to=blume@diabolo.informatik.rwth-aachen.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