Browse thread
[Caml-list] camlp4 in script
[
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: | Lars Nilsson <lars@c...> |
| Subject: | Re: [Caml-list] camlp4 in script |
Just out of curiousity, wouldn't creating a new toplevel using something like ocamlmktop -I +camlp4 -custom -o ocamlp4rsh camlp4r.cma and using #!/somedir/ocamlp4rsh be a nice solution for this particular problem? No need for the two additional lines in this case. I'm sort of wondering why no-one has suggested it before me (could be related to me not knowing what I'm saying quite possibly). Lars Artem Prisyznuk writes: > On Tue, 04 Nov 2003 10:16:54 +0100, Remi Vanicat > <vanicat@labri.u-bordeaux.fr> wrote: > > > > You could try : > > #!/usr/bin/ocamlrun /usr/bin/ocaml > > > > #directory "+camlp4";; > > #load "camlp4r.cma";; > > print_string "Hello\n"; > > Thanks a lot, it work. > > -- > Artem Prysyznuk > tema@sit.kiev.ua ------------------- 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