A SML Interpreter written in SML itself. It evaluates simple expressions involving basic boolean, integer and function expressions while performing type checking. The abstract synatx tree of the program is also printed.
Ensure that sml
, mllex
, ml-yacc
and mlton
are installed in the system.
Run make
.
Run ./program <file>
to run the sml code written in <file>
.
Refer to the tests
folder to get an idea about the language supported by the interpreter.