Skip to content

MoLanguage/moc

Repository files navigation

moc

This is the repository of what's meant to become the Mo compiler. At the moment, sadly it's still just a glorified parser, but that will change soon :)

Build

To try out the compiler/parser

  1. Have Rust installed.
  2. Run the following command, replacing <path_to_mo_file> with a path to a .mo source file. You can find examples in the "examples" repository. For example, you could try out hello.mo

cargo r -r -p mo -- -p <path_to_mo_file> --print-ast --print-tokens