to build
dune build
to execute
dune exec ./main.exe -- --show-ast --show-type --show-ir --show-bc tests/test.ml
to execute with the vm
cd vm
cmake .
make
./vm ../tests/test.bc
Videos to walk you through the code:
- Overview, lexer and parser
- Type inference
- IR semantic
- Ast to IR (coming soon)
- IR to bytecode (coming soon)
- Virtual machine (coming soon)