public static Object Eval( this PainContext PainContext) { while (true) { if (PainContext.IsFinished) { if (PainContext.Error != null) { throw PainContext.Error; } break; } try { Boolean result = PainLineRunner. ExecuteNext(PainContext); if (PainContext.BreakEveryLine && result) { break; } } catch { throw; } } return(PainContext.Result); }
public static PainObject Exec( this PainContext PainContext) { while (true) { if (PainContext.IsFinished) { break; } Boolean result = PainLineRunner.ExecuteNext(PainContext); if (PainContext.BreakEveryLine && result) { break; } } return(PainContext.GlobalObject); }