Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] camlp4 Plexer.no_quotations default
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Hendrik Tews <tews@t...>
Subject: Re: [Caml-list] camlp4 Plexer.no_quotations default
Daniel de Rauglaudre writes:
   Date: Wed, 30 Oct 2002 15:05:14 +0100
   Subject: Re: [Caml-list] camlp4 Plexer.no_quotations default
   
   On Wed, Oct 30, 2002 at 01:32:15PM +0100, Hendrik Tews wrote:
   > 
   > the default value for Plexer.no_quotations is false. This lets
   > "camlp4o pr_o.cmo" fail on legal ocaml programs like 
   >   let ( <:> ) x y = x + y;;
   > I would suggest to make the default value true. 
   
Originally I thought that there are no quotation expanders
defined in the bare camlp4 executable. Therefore I suggested that
quotation expansion should be off by default.

By grepping for Quatation.add I learned that camlp4 contains at
least two quotation expanders: "id" and "string". Are there more?
Where are they documented? (I would also be interested in why
they are included in camlp4?)

   What I could do, if you want, is to add an option of the command
   line of Camlp4 setting it to true. You could use it like that:
          ocamlc -pp "camlp4o -no_quot" ...
   
An option would be fine.

Bye,

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