Ejemplo n.º 1
0
        /// <summary>
        /// Implements the DIM command.
        /// </summary>
        public void Execute()
        {
            IToken token;

            do
            {
                var name    = _expressionEvaluator.GetVariableName();
                var indexes = _expressionEvaluator.GetIndexes();
                if (indexes.Length > 0)
                {
                    _variableRepository.DimensionArray(name, indexes);
                }

                token = _runEnvironment.CurrentLine.NextToken();
            }while (token.Seperator == TokenType.Comma);
            _runEnvironment.CurrentLine.PushToken(token);
        }