Example #1
0
		public VariableScope (VariableScope parent)
		{
			this.parent = parent;
			if (parent != null)
				this.nextSlot = parent.nextSlot;
		}
Example #2
0
		public void PushScope ()
		{
			curVarScope = new VariableScope (curVarScope);
		}
Example #3
0
		public VariableScope PopScope ()
		{
			curVarScope.giveHighTideToParent ();
			VariableScope cur = curVarScope;
			curVarScope = curVarScope.Parent;
			return cur;
		}
Example #4
0
 public void PushScope()
 {
     curVarScope = new VariableScope(curVarScope);
 }