Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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

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 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
one day...

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

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

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: