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