in this repository , i will try to post every code i wrote in my pathway to learn Ocaml
Installing Ocaml compiler is a bit sketchy in both mac and windows but the ways i will are the ones that i found easy to follow !
-to install the enviroment i follow this blog with a video attached , or you can install (wincaml,maccaml,unixcaml) link or simply follow this video blog
the best way i find to install ocaml in mac is using homebrew , that can be installed easily by following the link provided. then running this commands on Terminal
brew install ocaml
brew install opam
Let's first create our new file with extension .ml then write
print_string "Hello World !";
then we compile using this command line
ocamlc -o name filename.ml
then we can execute
./name