|
|
|
|
SUGGESTED STEPS FOR GETTING SML
- Follow the link SML Home Page
- Scroll down to the section "Downloading SML/NJ Software for Unix or Windows"
- Find the second bullet point "A self-installing .EXE for Windows 9X, NT, or 2000 is available (http, ftp; 5.4MB)."
Click on ftp
. Save 'smlnj.exe' to a temporary folder (C:\Temp).
- Execute smlnj.exe in the folder "c:\temp"
- Follow the default options (choosing typical installation), SML installs in the folder c:\sml
- Choose to restart the machine after installation.
- Download 'Paragraph Measurer' para.sml
in the folder "c:\temp"
- Traverse to folder c:\sml\bin and launch sml.bat
- At the SML prompt '-' (hyphen), type in
- use "c:\\temp\\para.sml";
Please include the file name in double quotes.
- You will receive a stream of output messages indicating compilation, they have the following lines in the end
functor Paragraphs :
signature PARAGRAPH_MEASURER = sig val process_paragraph :
TextIO.instream * TextIO.outstream -> unit end
functor Paragraph_Measurer :
structure Line_Module : LINES
structure Paragraph_Module : PARAGRAPHS
structure Main : PARAGRAPH_MEASURER
- You can then type in a line
this is a test input to check if SML is installed correctly.
Note: you will need to press enter (return key) twice after typing the line.
-
You should get the following output
this is a test input to check if SML is installed correctly.
12 total words, average word size = 4.08333333333
val it = () : unit
val it = () : unit
-
installtion is now successful.
-
Type
- OS.Process.exit(OS.Process.success);
to exit.
- Send email to heath@cs.vt.edu
if you find errors in this procedure or if you have serious difficulty
installing SML by this procedure. You may prefer to see the
instructor or the GTA during office hours.
USEFUL LINKS FOR STANDARD ML
THESE SAMPLE PROGRAMS ARE PROVIDED FOR YOUR CONVENIENCE
IN TESTING YOUR INSTALLATION OF STANDARD ML
Sample Programs |
Language | Name |
File |
Standard ML | echo_input |
echo_input.sml |
Standard ML |
Paragraph Measurer |
para.sml |
|