/// <summary> ///向字典中加入一个变量的状态 /// </summary> /// <param name="item"></param> public void Add(RuntimeItem item) { if (!isExists(item.VarName)) { dic.Add(item.VarName, item); } }
/// <summary> /// IdentityGroup /// </summary> private void IdentityGroupGram() { if (this.varTable.GetItem(this.matchIndex).varType == ConstTable.VariableType.Identity) { this.matchIndex++; } RuntimeItem item1 = new RuntimeItem(this.varTable.GetItem(this.matchIndex - 1).varValue, 0, false); this.RuntimeVarTb.Add(item1); IdentityGroup_Gram(); }