public override IValue interpret(Context context) { context.enterMethod(this); try { return(statements.interpret(context)); } catch (SyntaxError e) { e.Suffix = " in method '" + this.name + "'"; throw e; } finally { context.leaveMethod(this); } }
private bool interpretBody(Context context) { context.enterMethod(this); try { statements.interpret(context); return(true); } catch (ExecutionError e) { interpretError(context, e); // no more to execute return(false); } finally { context.leaveMethod(this); } }
public override IValue interpret(Context context) { return(Statements.interpret(context)); }