public VariableScope (VariableScope parent) { this.parent = parent; if (parent != null) this.nextSlot = parent.nextSlot; }
public void PushScope () { curVarScope = new VariableScope (curVarScope); }
public VariableScope PopScope () { curVarScope.giveHighTideToParent (); VariableScope cur = curVarScope; curVarScope = curVarScope.Parent; return cur; }
public void PushScope() { curVarScope = new VariableScope(curVarScope); }