English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Camlp4 "vs" JSE
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-02-07 (05:25)
From: Daniel de Rauglaudre <daniel.de_rauglaudre@i...>
Subject: Re: [Caml-list] Camlp4 "vs" JSE

On Wed, Feb 06, 2002 at 02:14:13PM -0800, Chris Hecker wrote:

> What does that mean, "can't guarantee parseability?"

I wondered that also but I think they meant that their preprocessor
can treat even non parsable input. For exemple, in C, if your input
      /* main () { printf("hello, world"); }

It is not parsable since the comment does not end, but if your
preprocessor is:
      sed -e 's|/\*||'

Which removes the initial /*, the C compiler can parse.

Camlp4 is a preprocessor which parses, respecting a "grammar" (it's
why they say "grammar-based"), what sed or /lib/cpp don't really do:
they just look at what is interesting for them, even if the rest is
not correct C.

Well, it is the way I interpreted what they said.

Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr