<wagle>
"open" imports a module? what keyword defines one?
lopex has quit []
Modius has joined #ocaml
Modius_ has quit [Ping timeout: 252 seconds]
lamawithonel has joined #ocaml
Associat0r has quit [Quit: Associat0r]
sepp2k has quit [Quit: Leaving.]
philtor has joined #ocaml
<thelema>
wagle: module Foo = struct ... end
<thelema>
wagle: each file foo.ml is implicitly wrapped with this text
ymasory has quit [Remote host closed the connection]
ymasory has joined #ocaml
philtor has quit [Ping timeout: 240 seconds]
ymasory has quit [Remote host closed the connection]
vivanov has quit [Ping timeout: 248 seconds]
vivanov has joined #ocaml
philtor has joined #ocaml
arubin has quit [Quit: arubin]
ymasory has joined #ocaml
emmanuelux has quit [Ping timeout: 248 seconds]
ymasory has quit [Quit: Leaving]
philtor has quit [Ping timeout: 258 seconds]
<wagle>
thelema: or anyone: how do you make the module findable by another file? the app does -I <dir> where <dir> contains printf2.ml and printf2.mli
<wagle>
on a ocamlopt
<wagle>
and the open Printf2 fails with "unbound module Printf2"
<gildor>
adrien: I didn't deliver anythning for 3.12, will do it when I have time
jld has quit [Ping timeout: 248 seconds]
jld has joined #ocaml
ygrek has joined #ocaml
edwin has joined #ocaml
edwin has left #ocaml []
Snark has joined #ocaml
dnolen has joined #ocaml
BiDOrD has quit [Read error: Operation timed out]
BiDOrD has joined #ocaml
dnolen has quit [Quit: dnolen]
boscop has quit [Ping timeout: 246 seconds]
boscop_ has joined #ocaml
boscop_ has quit [Read error: Connection reset by peer]
boscop_ has joined #ocaml
avsm has quit [Quit: Leaving.]
ikaros has joined #ocaml
jderque has joined #ocaml
boscop_ has quit [Ping timeout: 246 seconds]
boscop has joined #ocaml
boscop has quit [Excess Flood]
boscop has joined #ocaml
boscop has quit [Ping timeout: 260 seconds]
boscop has joined #ocaml
boscop has quit [Read error: Connection reset by peer]
boscop has joined #ocaml
boscop has quit [Excess Flood]
jderque has left #ocaml []
Cyanure has joined #ocaml
ulfdoz has quit [Quit: kernel-update]
ulfdoz has joined #ocaml
Vinnipeg has joined #ocaml
Associat0r has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
sepp2k has joined #ocaml
Yoric has joined #ocaml
lamawithonel has quit [Ping timeout: 248 seconds]
lopex has joined #ocaml
jderque has joined #ocaml
jderque has quit [Quit: leaving]
SoftTimur has joined #ocaml
<SoftTimur>
hello all, I just run a small compiler which generates a "exemple1" given "exemple1.miniml"
<SoftTimur>
the output file "exemple1" is a binary file, however, when I launch "./exemple1" from the terminal, it says "./exemple1: Command not found."
<SoftTimur>
could anyone tell me how to run the "./exemple1"?
ftrvxmtrx has quit [Quit: Leaving]
ftrvxmtrx has joined #ocaml
<ygrek>
strace and see what is not found, probably some bytecode interpreter
<SoftTimur>
execve("./exemple1", ["./exemple1"], [/* 62 vars */]) = -1 ENOENT (No such file or directory)
<thelema>
yes, so it's not a program to be executed by linux.
<thelema>
it could be a program to be executed by another program
<thelema>
and that other program executed by the kernel
<thelema>
how did you get this file again?
<thelema>
you compiled it by miniml?
<SoftTimur>
a compiler generates it from "exemple1.miniml":
<SoftTimur>
let rec fact n =
<SoftTimur>
if n=0 then 1 else (fact (n - 1)) * n ;;
<SoftTimur>
do
<SoftTimur>
print "6! = "; print (fact 6)
<SoftTimur>
return print "\n" ;;
<thelema>
what compiler?
<SoftTimur>
it is a compiler project from a master programes, this is the answer of the project given by the professor
<thelema>
so your professor wrote the compiler and gave it to you?
Vinnipeg has quit [Read error: Connection reset by peer]
<SoftTimur>
it was a old project (10 years ago), so he put the answer on his web site
<thelema>
but you're missing the instructions for running the compiled programs
<SoftTimur>
Pour essayer les exemples:
<SoftTimur>
faire par exemple "make EXEMPLES-SCHEME/exemple1" ou bien "make EXEMPLES-MINIML/exemple1". L'executable se trouvera alors dans ce repertoire.
<SoftTimur>
that is all what he wrote about the running...