caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Re: pb with ocamldep
@ 2000-06-08 10:25 Gerard Huet
  0 siblings, 0 replies; 7+ messages in thread
From: Gerard Huet @ 2000-06-08 10:25 UTC (permalink / raw)
  To: Christophe Raffalli; +Cc: caml-list

At 16:21 07/06/00 +0200, Christophe Raffalli wrote:
>
>It would be nice ocamldep coud also accept the -pp option to call a
>preprocessor.
>
>I have some problems with files that are not syntacticaly correct before
>preprocessing !
>So I can not use ocamldep on these files and this is annoying.
>
>-- 
>Christophe Raffalli

This is an instance of a general problem, the design of a programming
environment for the Caml family of languages with the various tools 
operating on abstract syntax rather than concrete syntax, so that they can
be used for all dialects through proper preprocessing. If you use an Emacs
editing support tool such as Tuareg you will have problems if you try to
adopt non-archaic syntax. 

For ocamldep the problem may be circumvented by some magic "pr_depend"
module written by Daniel for use with camlp4. Here is my own Makefile
depend entry, which should be adaptable to other syntax variants :

depend: $(SOURCES) 
	> .depend.new
	for i in $(SOURCES); do \
	camlp4r my_own_syntax_extension.cmo pr_depend.cmo -- -I . $$i >>
.depend.new ; \
	done
	mv .depend.new .depend

Gérard





^ permalink raw reply	[flat|nested] 7+ messages in thread
* pb with ocamldep
@ 2000-06-07 14:21 Christophe Raffalli
  2000-06-07 18:48 ` Michael Hicks
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Christophe Raffalli @ 2000-06-07 14:21 UTC (permalink / raw)
  To: caml-list


It would be nice ocamldep coud also accept the -pp option to call a
preprocessor.

I have some problems with files that are not syntacticaly correct before
preprocessing !
So I can not use ocamldep on these files and this is annoying.

-- 
Christophe Raffalli
Université de Savoie
Batiment Le Chablais, bureau 21
73376 Le Bourget-du-Lac Cedex

tél: (33) 4 79 75 81 03
fax: (33) 4 79 75 87 42
mail: Christophe.Raffalli@univ-savoie.fr
www: http://www.lama.univ-savoie.fr/~RAFFALLI




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2000-06-09 16:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-08 10:25 pb with ocamldep Gerard Huet
  -- strict thread matches above, loose matches on Subject: below --
2000-06-07 14:21 Christophe Raffalli
2000-06-07 18:48 ` Michael Hicks
2000-06-07 22:24 ` Max Skaller
2000-06-08  8:57 ` Sven LUTHER
2000-06-08 12:01   ` Christophe Raffalli
2000-06-08 13:01 ` Daniel de Rauglaudre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).