上QQ阅读APP看书,第一时间看更新
Installing BuckleScript
BuckleScript is a compiler that takes the OCaml AST and emits clean, readable, and performant JavaScript. It can be installed via npm, as follows:
npm install -g bs-platform
Installing bs-platform provides a binary called bsb, which is BuckleScript's build system.
In the future, the Reason toolchain will make it much easier to target native platforms as well as JavaScript. Currently, Reason compiles to native by using a fork of bsb, called bsb-native .