SML ファイル: 「test.sml」
(* here is a comment *)
val x = 123;
ここから SMLNJ 110.76 をインストールしました: http://www.smlnj.org/dist/working/110.76/、ここから Emacs 24.3.1: http://ftp.gnu.org/gnu/emacs/windows/emacs -24.3-bin-i386.zip、および Emacs GUI による Emacs の SML モード。
Emacs スタック トレースは次のとおりです。
test.sml:1.2 Error: illegal token
test.sml:1.3 Error: illegal token
test.sml:1.5 Error: illegal token
test.sml:1.7 Error: illegal token
test.sml:1.9 Error: illegal token
など、次で終わります。
uncaught exception Compile [Compile: "syntax error"]
raised at: ../compiler/Parse/main/smlfile.sml:15.24-15.46
../compiler/TopLevel/interact/evalloop.sml:44.55
../compiler/TopLevel/interact/evalloop.sml:296.17-296.20
また、ここに配置されているように、SML および sublimeREPL パッケージを使用して Sublime Text 3 経由で同じプログラムを試しました: http://developerinmotion.wordpress.com/2013/02/07/sublime-text-2-and-sml/。しかし、私は同じ問題を抱えています: 違法なトークン構文エラーの長いリストとそれに続く:
C:\Program Files (x86)\SMLNJ\\bin\.run\run.x86-win32.exe: Fatal error -- Uncaught exception Compile with "syntax error" raised at ../compiler/Parse/main/smlfile.sml:15.24-15.46
どうしたの?SMLNJ を正しくインストールしていませんか?