Hi @Shivam ,
Thanks for your explanation.
I am learning to use the LLVM OCaml binding recently. It’s still working and updating. And I updated it to LLVM 12.0.1 in opam (ocaml package manager).
I understood the problem: the outdated build system etc.
I found one OCaml tutorial implementation for Kaleidoscope on GitHub. The good is it works (with LLVM 12 and the latest OCaml). The bad is it lacks for the chapters 8,9,10 and the code/folder structure is not identical to the C++ one. Another point is in OCaml, using a parser generator (e.g. menhir) is usually much popular than a manual lexer/parser. I guess it’s true even for OCaml LLVM users.
I am working on extending it to cover the material in chapters 8,9,10 on my own. It’s almost done and it works.
I agree with your thinking on unmaintained tutorials. Let me finish my code first and have another post to discuss on the tutorial.