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: new+old Camlp4 (was Re: [Caml-list] Bug in ocamlyacc)
Date: Wed, 25 Apr 2007 04:29:56 +0200	[thread overview]
Message-ID: <20070425022956.GA15422@yquem.inria.fr> (raw)
In-Reply-To: <Pine.LNX.4.58.0704241231220.19902@localhost>

Hi,

On Tue, Apr 24, 2007 at 01:17:31PM -0700, Martin Jambon wrote:

> The current situation with camlp4 3.10-beta is terrible. Not because
> the new camlp4 is not good or anything, but because it is not compatible
> with the old one and yet replaces it.

Alternative solution : download my version of Camlp4, named "camlp4s" :
    http://pauillac.inria.fr/~ddr/camlp4s/

This is Camlp4 before its inclusion into OCaml some years ago, and
upgraded to be (almost) compatible to the most recent versions of
Camlp4, except the forthcoming one 3.10.

Most important changes :

  One only source which can be used for several versions of OCaml. Just
  need to be recompiled. Can be used for ocaml versions from 3.08.1 to
  3.10. (If you use a more older version, I can add it.)

  The lexer Plexer has been rewritten. It uses a new syntax pa_lexer.cmo
  allowing to make parser of streams of characters with a shorter syntax.

  Experimented new directive "#pragma" allowing to evaluate expressions
  at compile time (= camlp4 time). Useful, for example, to experiment
  syntax extensions with the EXTEND statement without having to put
  it in another file.

  Started an experiment of a new pretty printing system, the old one
  of Camlp4 not being satisfactory, nor Format which has sometimes
  problems. The library is named Sformat, and is very simple.

But notice that this module Sformat is not yet used for camlp4s pretty
print, the old system remaining for the moment. I experimented it
separatedly and it seems to work. Interesting future feature : you
will be able to decide, by symmetry, to skip all lines in a pattern
matching between the pattern and the expression if one case need a
newline. Same thing in a "if then else" if the "then" case and the
"else" case are similar ("similarity" is tested with the library
"mldiff").

Its distribution being independant from OCaml distribution, new releases
can be done at any time.

-- 
Daniel de Rauglaudre
http://pauillac.inria.fr/~ddr/


  parent reply	other threads:[~2007-04-25  2:29 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-23 22:03 Bug in ocamlyacc David Allsopp
2007-04-24  5:29 ` [Caml-list] " skaller
2007-04-24 10:23   ` Diego Olivier FERNANDEZ PONS
2007-04-24 12:06     ` ls-ocaml-developer-2006
2007-04-24 18:25     ` skaller
2007-04-24 20:17       ` new+old Camlp4 (was Re: [Caml-list] Bug in ocamlyacc) Martin Jambon
2007-04-24 21:38         ` Yaron Minsky
2007-04-24 22:53           ` new+old Camlp4 ls-ocaml-developer-2006
2007-04-25  1:03         ` new+old Camlp4 (was Re: [Caml-list] Bug in ocamlyacc) skaller
2007-04-25  2:29         ` Daniel de Rauglaudre [this message]
2007-04-25 17:11         ` Markus Mottl
2007-04-26  3:00           ` skaller
2007-04-27  9:15           ` new+old Camlp4 Xavier Leroy
2007-04-27 13:43             ` Markus Mottl
2007-05-02  8:03             ` [Caml-list] " Hendrik Tews
2007-04-24 14:32   ` [Caml-list] Bug in ocamlyacc Francois Pottier
2007-04-24 18:59     ` skaller
2007-04-24 19:59       ` Francois Pottier
2007-04-27 15:56     ` brogoff

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=20070425022956.GA15422@yquem.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).