} //内部变量个数 public ScriptExecutable(ExecutableBlock block) { m_StackIndex = 0; m_Stacks[m_StackIndex] = 0; m_VariableIndexs = new ScriptIndexs(); m_InternalIndexs = new ScriptIndexs(); m_listScriptInstructions = new List <ScriptInstruction>(); Blocks = new Stack <ExecutableBlock>(); Blocks.Push(block); AddIndex("this"); }
public void BeginStack(ExecutableBlock block) { ++m_StackIndex; if (m_Stacks.ContainsKey(m_StackIndex)) { m_Stacks[m_StackIndex] = m_Stacks[m_StackIndex] + 1; } else { m_Stacks[m_StackIndex] = 0; } Blocks.Push(block); }