ArchLinux:
sudo pacman -S ocaml
sudo pacman -S utop
sudo pacman -S opam
Read more: https://ocaml.org/docs/install.html
And next:
$ opam init
$ opam install utop
$ opam install opal
$ dune utop
utop # open One;;
utop # open Parser;;
utop # One.Parser.test;;
- : (top_level * char Opal.input) option =
Some
(Defun
(Void, "main",
[If (Eq (Cst 0, Cst 1), [Print (Add (Cst 1, Prod (Cst 2, Cst 3)))],
[If (Lt (Cst 0, Cst 1), [Print (Cst 1)], [])]);
Return [Cst 1; Cst 2; Cst 3]]),
Opal.LazyStream.Nil)
Thank you so much for Arthur, he showed something special and perfect to me. It's why I said I dont know nothing and I'm learning new things everyday.
© Copyright Arthur Correnson, Max Base; 2021