From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id MAA04418; Fri, 27 Sep 2002 12:10:46 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA04414 for ; Fri, 27 Sep 2002 12:10:46 +0200 (MET DST) Received: from verdot.inria.fr (verdot.inria.fr [128.93.11.7]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g8RAAj506410 for ; Fri, 27 Sep 2002 12:10:45 +0200 (MET DST) Received: (from ddr@localhost) by verdot.inria.fr (8.9.3/8.9.3) id MAA21506 for caml-list@inria.fr; Fri, 27 Sep 2002 12:10:40 +0200 Date: Fri, 27 Sep 2002 12:10:40 +0200 From: Daniel de Rauglaudre To: caml-list@inria.fr Subject: Re: [Caml-list] ocaml syntax rule-of-thumbs Message-ID: <20020927121040.D21405@verdot.inria.fr> References: <200209261651.g8QGp5i13403@waco.inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from kgergely@mlabdial.hit.bme.hu on Fri, Sep 27, 2002 at 09:50:16AM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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