Exemple #1
0
        public void Refresh()
        {
            stack = new VerbStack();
            verbs = new List <Verb>();
            var newList = asAdded;

            asAdded = new List <Verb>();
            foreach (var verb in newList)
            {
                Add(verb);
            }
        }
Exemple #2
0
 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;
 }
Exemple #3
0
 public void Clear()
 {
     stack   = new VerbStack();
     verbs   = new List <Verb>();
     asAdded = new List <Verb>();
 }