2013-10-09 43 views
0

我無法在emacs中運行簡單的.sml文件。請幫幫我。如何使用emacs運行.sml文件?

新澤西州v110.76的標準ML [構建:Sun Jul 14 09:59:19 2013] - 使用「s.sml」;

[開s.sml] [使用失敗:IO:openIn失敗的 「s.sml」,Win32TextPrimIO:openRd:失敗]在提出

未捕獲的異常錯誤 :../compiler/TopLevel/互動/ interact.sml:24.14-24.28

感謝, 達山

+0

說你做了什麼來得到這個錯誤。 – Stefan

回答

0

請確保您運行SML之前的目錄是同一個作爲文件所在的一個。否則,您必須使用該文件的絕對路徑。看看this問題,它處理同樣的問題(並且表明它可能是文件未被正確指定的問題)。

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!!!