public void Refresh() { stack = new VerbStack(); verbs = new List <Verb>(); var newList = asAdded; asAdded = new List <Verb>(); foreach (var verb in newList) { Add(verb); } }
public BlockState(Block block) { this.block = block; if (this.block.AutoRegister) { Runtime.State.RegisterBlock(this.block, this.block.ResolveVariables); } verbStack = Runtime.State.Expressions.Current; valueStack = Runtime.State.Stack; Stringify = null; index = -1; }
public void Clear() { stack = new VerbStack(); verbs = new List <Verb>(); asAdded = new List <Verb>(); }