A custom programming language compiler built with OCaml.
# Build
ocamlbuild -use-ocamlfind -pkgs menhir,yojson main.byte
# Run
./main.byte <path to input file>
- OCaml
- Menhir
fn main() {
a = 10;
write(12);
return 0;
}
fn vars(){
result = 20;
write(result);
return 0;
}