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

compile and run f# scripts from osx terminal

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

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

FSharp 互动:

fsharpi

F# Interactive for F# 4.0(开源版) 根据 Apache 2.0 开源许可证免费分发

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

FSharp 编译器:

fsharpc

F# 4.0 的 F# 编译器(开源版) 根据 Apache 2.0 开源许可证免费分发