从osx终端编译并运行f#脚本

nik*_*nik 5 macos terminal mono f#

有没有办法从osx控制台编译和运行f#?我有单声道安装并添加/mono64/bin/mono到路径,但mcs命令返回

test.fs(2,0): error CS1525: Unexpected symbol `let'
Compilation failed: 1 error(s), 0 warnings
Run Code Online (Sandbox Code Playgroud)

Sus*_*ver 9

FSharp互动:

fsharpi

F#4.0(开源版)的F#Interactive在Apache 2.0开源许可下自由发布

如需帮助,请输入#help ;;

FSharp编译器:

fsharpc

F#4.0的F#编译器(开源版)根据Apache 2.0开源许可证自由发布