Esempio n. 1
0
            public void Push(QToken token)
            {
                if (_front.Count == 0 && _reader.CanPoke)
                {
                    switch (token.TokenType)
                    {
                    case QType.SquareClose: _reader.Poke(']'); return;

                    case QType.ParenthesisClose: _reader.Poke(')'); return;

                    case QType.BlockClose: _reader.Poke('}'); return;

                    case QType.Colon: _reader.Poke(':'); return;
                    }
                }
                _front.Push(token);
            }