0

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

标准 ML of New Jersey v110.76 [构建:Sun Jul 14 09:59:19 2013] - 使用“s.sml”;

[打开 s.sml] [使用失败:Io: openIn 在“s.sml”上失败,Win32TextPrimIO:openRd: 失败]

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

谢谢,达山

4

2 回答 2

1

我建议以下

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!!!
于 2013-10-23T16:14:51.677 回答
0

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

于 2013-10-09T16:57:13.110 回答