Exemplo n.º 1
0
 public StackQueue(StackQueue <T> other)
 {
     _size  = other._size;
     _top   = other._top;
     _items = new T[_size];
     System.Array.Copy(other._items, _items, _size);
 }
Exemplo n.º 2
0
 public void Reset()
 {
     state_stack             = new Stack <int>();
     token_type_stack        = new Stack <int>();
     token_value_stack       = new Stack <string>();
     input_token_type_queue  = new Queue <int>();
     input_token_value_queue = new Queue <string>();
     parse_tree    = new StackQueue <Node>();
     current_state = 0;
     state_stack.Push(current_state);
 }