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