Setting up things on OS X is easy thanks to Homebrew. Simple run the following command:
$ brew install smlnj rlwrap
We'll make use of the CM
module for building the projects. To use it you
need a sources.cm
file. Then run the following commands.
$ rlwrap sml
Standard ML of New Jersey v110.78 [built: Thu Aug 20 19:23:18 2015]
- CM.make "sources.cm";
...
val it = true : bool
- Lexer.lexFile "fixtures/test1.tig";
- Use 4 spaces for basic indentation, and never use tabs.