public T Pop() { ParserStack <T> parserStack = this; int num = parserStack._top - 1; int num1 = num; parserStack._top = num; return(this.array[num1]); }
public void Push(T value) { if (this._top >= (int)this.array.Length) { T[] tArray = new T[(int)this.array.Length * 2]; Array.Copy(this.array, tArray, this._top); this.array = tArray; } ParserStack <T> parserStack = this; int num = parserStack._top; int num1 = num; parserStack._top = num + 1; this.array[num1] = value; }
protected ShiftReduceParser() { this._stateStack = new ParserStack <State>(); this.valueStack = new ParserStack <YYSTYPE>(); this.locationStack = new ParserStack <YYLTYPE>(); }