Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
From: Daniel de Rauglaudre <daniel.de_rauglaudre@i...>
Subject: Re: [Caml-list] Camlp4 "vs" JSE
Hi,

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
is:
      /* 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.

-- 
Daniel de RAUGLAUDRE
daniel.de_rauglaudre@inria.fr
http://cristal.inria.fr/~ddr/
-------------------
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