/// <summary>
        ///		Selecciona las primeras n instrucciones
        /// </summary>
        internal InstructionsBaseCollection Select(int maxInstructions)
        {
            InstructionsBaseCollection instructions = new InstructionsBaseCollection();

            // Obtiene las primeras instrucciones
            for (int index = 0; index < maxInstructions && index < Count; index++)
            {
                instructions.Add(this[index]);
            }
            // Devuelve las instrucciones
            return(instructions);
        }
예제 #2
0
 internal InstructionBase(Token token)
 {
     Token        = token;
     Instructions = new InstructionsBaseCollection();
     IsError      = false;
 }
예제 #3
0
 internal InstructionIf(Token token) : base(token)
 {
     Condition        = new ExpressionsCollection();
     ConditionRPN     = new ExpressionsCollection();
     InstructionsElse = new InstructionsBaseCollection();
 }