caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Camlp4 in a Unix pipe
@ 2005-11-17 14:20 Alessandro Baretta
  2005-11-21  9:39 ` [Caml-list] " Hendrik Tews
  0 siblings, 1 reply; 8+ messages in thread
From: Alessandro Baretta @ 2005-11-17 14:20 UTC (permalink / raw)
  To: Ocaml

I'm musing a little with camlp4. Specifically, I'm trying to get it to 
preprocess input written according to some syntax extension and output the 
result. Of course, since I'm just playing, I'd like to do this in type-eval-loop 
kind of interface. I tried typing the following command in my shell:

$ cat - | camlp4 pa_o.cmo pa_extend.cmo pr_o.cmo pa_openin.cmo

Camlp4 dies miserably discarding it's standard input. So then I tried the following:

cat - | camlp4 pa_o.cmo pa_extend.cmo pr_o.cmo pa_openin.cmo -impl /dev/stdin

Again, camlp4 dies miserably with the following error message:
I/O error: Illegal seek

Short of writing my own Pr_stdout module, is there any way to achieve the result 
of interactively getting camlp4 to preprocess some code and print it back to stdout?

Alex


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

end of thread, other threads:[~2005-11-24 11:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-17 14:20 Camlp4 in a Unix pipe Alessandro Baretta
2005-11-21  9:39 ` [Caml-list] " Hendrik Tews
2005-11-22 16:42   ` Alessandro Baretta
2005-11-22 18:15     ` Florian Hars
2005-11-23 11:27       ` Alessandro Baretta
2005-11-24 11:30         ` Hendrik Tews
2005-11-22 22:34     ` Christophe Raffalli
2005-11-23  9:05     ` Hendrik Tews

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).