caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Daniel de Rauglaudre <daniel.de_rauglaudre@inria.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list]  ocaml syntax rule-of-thumbs
Date: Fri, 27 Sep 2002 12:10:40 +0200	[thread overview]
Message-ID: <20020927121040.D21405@verdot.inria.fr> (raw)
In-Reply-To: <Pine.LNX.4.21.0209270859440.25186-100000@mlabdial.hit.bme.hu>; from kgergely@mlabdial.hit.bme.hu on Fri, Sep 27, 2002 at 09:50:16AM +0200

Hi,

On Fri, Sep 27, 2002 at 09:50:16AM +0200, Kontra, Gergely wrote:

> Wow, so I can even write my own syntax!
> Has anybody an SML syntax description? Well, I must dive into a correct
> syntax description.

There is an SML syntax provided by Camlp4, it is incomplete, but I
managed to translate a rather big program from SML to OCaml with it.

You can take the source of that syntax pa_sml.ml and make your changes
to create your own syntax, but I am afraid that its code is very bad
written, because by mistake I took some version of the SML-NJ grammar
of some years ago which were very unreadable. I should rewrite pa_sml.ml
one day...

Another solution is to take the "normal" syntax pa_o.ml or the "revised"
syntax pa_r.ml as start. I have been working these days on a "Scheme"
syntax, pa_scheme.ml (written in Scheme syntax and bootstrapped by
a revised syntax version pa_schemer.ml).

Or you can start from scratch, if you are courageous...

-- 
Daniel de RAUGLAUDRE
daniel.de_rauglaudre@inria.fr
http://cristal.inria.fr/~ddr/
-------------------
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


      reply	other threads:[~2002-09-27 10:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200209261651.g8QGp5i13403@waco.inria.fr>
2002-09-27  7:50 ` [Caml-list] lazyness, exceptions?, " Kontra, Gergely
2002-09-27 10:10   ` Daniel de Rauglaudre [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=20020927121040.D21405@verdot.inria.fr \
    --to=daniel.de_rauglaudre@inria.fr \
    --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;
as well as URLs for NNTP newsgroup(s).