How to export Standard ML functions to JavaScript via EMSCRIPTEN?

*爱你&永不变心* 提交于 2020-01-25 11:29:11

问题


Is it possible to export a Standard ML function such as

fun fac 0 = 1
  | fac n = n * fac (n - 1);

To a respective JavaScript function, via Emscripten?

I know the compilation can be done, but I'm not sure how exactly you would access "fac" from JS code.

来源:https://stackoverflow.com/questions/20918629/how-to-export-standard-ml-functions-to-javascript-via-emscripten

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!