terminal commands like this
$node index.js compile test/add.s
and
$node index.js compile test/getGreatest.s
will compile a (.s
) file written in the "Simple Programming Language" into a byte code file (Simple machine language .sml
) and run it on the Simple virtual machine.