Use SMLNJ.
Install the rlwrap from your package manager. Prepend rlwrap
to your invocation of sml
like so: rlwrap sml
.
Install package smlnj, and run sml
from the shell.
- Install Command Line Tools (CLT) for Xcode:
xcode-select --install
- Run:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Check your install with
brew doctor
- Install SMLNJ with
brew install smlnj
Now you should be able to run sml
from the shell.
Visit the SMLNJ downloads page, click on “files” next to the most
recent release, then scroll down to the bottom. Download and
run the MS Windows Installer (*.msi
file). Run “Standard ML of
New Jersey” from the start menu.