コード例 #1
0
 public EvaluationContext(LanguageRuntime runtime)
 {
     Runtime = runtime;
     LanguageCaseSensitive = Runtime.Language.Grammar.CaseSensitive;
     //Globals = new GlobalValuesTable(100, Symbols, LanguageCaseSensitive);
     Globals        = new ValuesTable(100);
     CallDispatcher = new DynamicCallDispatcher(this);
     ThreadId       = Thread.CurrentThread.ManagedThreadId;
     TopFrame       = new StackFrame(this, Globals);
     CurrentFrame   = TopFrame;
     Data           = new DataStack();
     Data.Init(runtime.Unassigned); //set LastPushedItem to unassigned
 }
コード例 #2
0
ファイル: LanguageRuntime.cs プロジェクト: Aggror/Stride
 public virtual bool HandleException(Exception ex, DynamicCallDispatcher dispatcher, OperatorImplementation failedTarget, EvaluationContext context)
 {
     return(false);
 }