Version française
Home     About     Download     Resources     Contact us    
Browse thread
Re: [Caml-list] lazyness, exceptions?, ocaml syntax rule-of-thumbs
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Daniel de Rauglaudre <daniel.de_rauglaudre@i...>
Subject: Re: [Caml-list] ocaml syntax rule-of-thumbs
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