Exemple #1
0
 public void Push(AstNode node, ParserState state)
 {
     if (_count == _data.Length)
     {
         ExtendData();
     }
     _data[_count] = new ParserStackElement(node, state);
     _count++;
 }
Exemple #2
0
 private void ExtendData()
 {
     ParserStackElement[] newData = new ParserStackElement[_data.Length + SizeIncrement];
     Array.Copy(_data, newData, _data.Length);
     _data = newData;
 }
Exemple #3
0
 public void Push(AstNode node, ParserState state)
 {
     if (_count == _data.Length)
     ExtendData();
       _data[_count] = new ParserStackElement(node, state);
       _count++;
 }
Exemple #4
0
 private void ExtendData()
 {
     ParserStackElement[] newData = new ParserStackElement[_data.Length + SizeIncrement];
       Array.Copy(_data, newData, _data.Length);
       _data = newData;
 }