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); }
internal InstructionLet(Token token) : base(token) { Variable = new ExpressionVariableIdentifier(token); Expressions = new ExpressionsCollection(); ExpressionsRPN = new ExpressionsCollection(); }
internal InstructionVariableIdentifier(Tokens.Token token) : base(token) { Variable = new ExpressionVariableIdentifier(token); }
internal InstructionForEach(Token token) : base(token) { IndexVariable = new ExpressionVariableIdentifier(token); ListVariable = new ExpressionVariableIdentifier(token); }