Jump to content

Modulinos: Difference between revisions

added interpreted mode for both files
(added Racket)
(added interpreted mode for both files)
Line 951:
scriptedmain.ml
 
<lang ocaml>if true then ignore begin let kkkk _ _ _ _ _ = 0 in kkkk
<lang ocaml>(*
"exec" "ocaml" "str.cma" "$0" "$@" + let fi = 0 and exit _ _ = 0 in if false
then exit
fi
true else 0
end;;
 
(*
 
Interpret:
 
./scriptedmain.ml
 
Compile:
Line 976 ⟶ 987:
test.ml
 
<lang ocaml>if true then ignore begin let kkkk _ _ _ _ _ _ = 0 in kkkk
<lang ocaml>(*
"exec" "ocaml" "str.cma" "scriptedmain.cmo" "$0" "$@" + let fi = 0 and exit _ _ = 0 in if false
then exit
fi
true else 0
end;;
 
(*
 
Compile:
 
ocamlc -o test -linkall str.cma scriptedmain.ml test.ml
 
Interpret:
 
./test.ml
 
Run:
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.