internal void Start() { _operatorStack.Clear(); _tokenQueue.Clear(); _functionStack.Clear(); _lastWasFunction = false; }
public override ExcutableCommand Create(TokenQueue seq, Token first, CompilerApplication context) { string key = seq.Dequeue().Text; seq.Dequeue(); Token value = seq.Dequeue(); context.SetEqu(key, value); if (replaced != null) { return(null); } EquTokenQueue queue = new EquTokenQueue(seq.Count, context); foreach (var c in seq) { queue.Enqueue(c); } seq.Clear(); context.context.Tokens = queue; replaced = queue; return(null); }