Removed "Program exited with return value" message as Professor Martin instructed
Fix a bug that causes a runtime error to be shown in the browser's console when student provide an evaluator entry function with incorrect parameter count
For example: set_evaluator(()=>undefined); or set_evaluator((param1,param2)=>undefined);
Now the REPL will display the error message Error: Unable to use your evaluator to run the code. Does your evaluator entry function contains and only contains exactly one parameter? to students if they make this mistake in their code.
Other minor changes:
Removed "metacircular" in documentation since the module is not only limited to metacircular evaluator, but also possibly on CSE machine and any evaluators that use a function with one parameter to accept raw code as entry.
In the error message: the function name invoke_repl should be set_evaluator
set_evaluator(()=>undefined);
orset_evaluator((param1,param2)=>undefined);
Error: Unable to use your evaluator to run the code. Does your evaluator entry function contains and only contains exactly one parameter?
to students if they make this mistake in their code.invoke_repl
should beset_evaluator