public object Evaluate(string command)
{
Machine current = Machine.Current;
object result = null;
try
{
this.machine.SetCurrent();
Parser parser = new Parser(command);
Block block = parser.CompileBlock();
if (block != null)
result = block.Execute(this.machine, null);
return result;
}
finally
{
Machine.SetCurrent(current);
}
}