I just noticed that there is a Motoko Compiler (moc) Reference inside the new documentation:
https://sdk.dfinity.org/docs/language-guide/compiler-ref.html
Here‘s an example alias in @nomeata Stanford Blockchain Conference example code:
https://github.com/nomeata/motoko-sbc2020/blob/master/env
6 Likes
Ori
2
I spotted that too, bit of a teaser for things to come ; ) Also note there’s a REPL flag for interactive mode.
Edit: You might not need to use that flag actually. REPL away by default…
2 Likes
Ori
3
You’ll need to put your own path to the stdlib files if you’re copying Joachim’s alias there, “dfx cache show” will give you the path you need:
alias moc=$(dfx cache show)/moc" --package stdlib "$(dfx cache show)/stdlib
2 Likes