rlwrap or emacs

Of course you want to enjoy features like command line history, parenthesis matching and navigating through an expression with the arrow keys. Suppose you work on a Linux machine, you have two possibilities to get all these things. First you can install rlwrap. If you then invoke the interpreter with rlwrap ./cubint ..., the tool will catch all your input and you can replay it with the arrow keys. The second possibility is to use the editor emacs with sml-mode. If you set up emacs for SML, follow these steps: This approach also work with Emacs on Windows. Alternatively you can use the Windows XP shell that offers a command line history which also works in the interpreter. To input more complicated expressions use an arbitrary text editor and load the file with use "file" (cf. section 4).

Christian Müller 2004-11-09