Beispiel #1
0
 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);
     }
 }
Beispiel #2
0
 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);
     }
 }
Beispiel #3
0
 public override IValue interpret(Context context)
 {
     return(Statements.interpret(context));
 }