Using Developer Loop, 
You can continiously run SML files and get their output from the REPL.
It's also extensible - you can easily tune it to work with other languages.