[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Nicolas Pouillard <nicolas.pouillard@i...> |
| Subject: | Re: [Caml-list] ocamlbuild: args to tags? |
Excerpts from skaller's message of Mon Sep 24 16:03:37 +0200 2007: > On Mon, 2007-09-24 at 14:29 +0200, Nicolas Pouillard wrote: > > Excerpts from jake.donham's message of Tue Sep 18 20:01:56 +0200 2007: > > > Hi, > > > > > > Is there a way to pass arguments to a preprocessor via the _tags file? > > > > Yes, but that's not what you want. Moreover this feature is not really > > encouraged. > > Just my 2c .. I think all this stuff is wrong. I think it should be > done like this: Being able to specify things like syntax extensions in the same place can be very precious and not incompatible with an "in the file itself" way of doing so. > (* My Ocaml File .. *) > (*#Syntax Mycamlp4syn *) (* for compatibility *) > #syntax Mycamlp4syn; (* better *) This sounds like a good idea. That's not a new one and it was our first choice when designing ocamlbuild. However after some reflections we decided that one can first do _tags method and then provide a way to read tags from the file itself. The main problem with the solution with embedded tags is that one must at least define a how to read these annotations. This is not that easy since a .ml file can be a pre-processed file with a totally different syntax. One moreover don't want to only focus on OCaml files but also C files for instance. I hope this makes our first decision clear... Regards, -- Nicolas Pouillard aka Ertai