如何使用 emacs 运行 .sml 文件



我无法在emacs中运行简单的.sml文件。求求你,帮帮我。

新泽西标准ML v110.76 [建成时间:2013年7月14日星期日 09:59:19]- 使用"s.sml" ;

[开场白][使用失败:Io:openIn 在"s.sml"上失败,Win32TextPrimIO:openRd:failed]

未捕获的异常错误 提出于: ../compiler/TopLevel/interact/interact.sml:24.14-24.28

谢谢达山

我会建议以下内容

1.Close Emacs,then open it
2.Create new file by C-x C-f
3.enter valid sml code in the file wc you created and named test.sml say
4.C-x C-s to save it 
5.M-x run-sml and press return twice
6.In the sml REPL enter use "test.sml";press return 
7.This is it!!!

确保运行 sml 之前的目录与文件所在的目录相同。否则,必须使用文件的绝对路径。看看这个问题,它处理同样的问题(并建议这可能是文件未正确指定的问题(。

最新更新