(To run a source block, you need to start an SML process first. Use M-x~ ~"run-sml" RET "sml" RET and then run the source block.)
M-x~ ~"run-sml"
RET
"sml"
3; 3 + 4; 4 div 3; 4 mod 3;
val it = 7 : int