Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] autoconf and caml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Olivier Andrieu <andrieu@i...>
Subject: Re: [Caml-list] autoconf and caml
 Kenneth Oksanen [Thursday 5 September 2002] :
 > The extra whitespaces in the string constants are crucial.  The intent
 > of the output of ocamllex was that they would *not* be included in the
 > strings, but cpp mangles those strings so that they are included in
 > the strings, thereby producing a broken lexer.

In fact there are other pitfalls : cpp only accept lexically correct C
input but ocaml lexical conventions are different. For instance 'a
(type variables) are rejected by cpp if there are an odd number of
them on a line  ("missing terminating ' character").

-- 
   Olivier
-------------------
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