Tools
SML/NJ
We will use the latest version of SML/NJ(110.72) in our course.
- Windows user Download
-
Linux user
run "
sudo apt-get install smlnj
" in Debian/Ubuntu.
Emacs
-
Setup your environment in Ubuntu(Linux)
- sudo apt-get install emacs sml-mode mlton
- sudo apt-get install build-essentials
-
Setup your environment in Windows
- Download Emacs and extract to "d:\Emacs" e.g.
- Adding environment variable "HOME", set as "d:\Emacs" e.g.
- Download sml-mode and extract to "d:\Emacs\site-lisp" e.g.
-
Add following code to your ".emacs" file in HOME
(add-to-list 'load-path "d:/emacs/site-lisp" t) (add-to-list 'load-path "d:/emacs/site-lisp/sml-mode") (load "sml-mode-startup")
- Save & Restart Emacs
-
Tutorial
- Start your Emacs find tutorial from Menu -> Help -> Emasc tutorial
Cygwin
Cygwin is a Linux-like environment for Windows. To install Cygwin
- Download setup.exe from home page
- Run setup.exe
- Add "http://oss.ustc.edu.cn/cygwin/cygwin/" as your mirror
- Select package and install