示例#1
0
 internal InstructionFor(Token token) : base(token)
 {
     IndexVariable = new ExpressionVariableIdentifier(token);
     StartValue    = new ExpressionsCollection();
     StartValueRPN = new ExpressionsCollection();
     EndValue      = new ExpressionsCollection();
     EndValueRPN   = new ExpressionsCollection();
     StepValue     = new ExpressionsCollection();
     StepValueRPN  = new ExpressionsCollection();
 }
        /// <summary>
        ///		Clona el identificador de variable
        /// </summary>
        internal override ExpressionBase Clone()
        {
            ExpressionVariableIdentifier variable = new ExpressionVariableIdentifier(base.Token);

            // Clona las expresiones
            variable.IndexExpressions    = IndexExpressions.Clone();
            variable.IndexExpressionsRPN = IndexExpressionsRPN.Clone();
            if (Member != null)
            {
                variable.Member = Member.Clone() as ExpressionVariableIdentifier;
            }
            // Devuelve el objeto clonado
            return(variable);
        }
示例#3
0
 internal InstructionLet(Token token) : base(token)
 {
     Variable       = new ExpressionVariableIdentifier(token);
     Expressions    = new ExpressionsCollection();
     ExpressionsRPN = new ExpressionsCollection();
 }
示例#4
0
 internal InstructionVariableIdentifier(Tokens.Token token) : base(token)
 {
     Variable = new ExpressionVariableIdentifier(token);
 }
示例#5
0
 internal InstructionForEach(Token token) : base(token)
 {
     IndexVariable = new ExpressionVariableIdentifier(token);
     ListVariable  = new ExpressionVariableIdentifier(token);
 }