Table of Contents

Class For

Namespace
BOOSE
Assembly
BOOSE.dll

For command. Adds processing at compile() and execute() to process a for command.

public sealed class For : ConditionalCommand, ICommand
Inheritance
For
Implements
Inherited Members

Constructors

For()

public For()

Properties

From

Where counting starts.

public int From { get; set; }

Property Value

int

LoopControlV

For loop uses a variable to do its counting.

public Evaluation LoopControlV { get; }

Property Value

Evaluation

Step

What do do each count. If none is specified it is set to +1t.

public int Step { get; set; }

Property Value

int

To

Where counting ends.

public int To { get; set; }

Property Value

int

Methods

Compile()

Takes the standard parameter list and extracts the LCV name, "from","to" and "step". If the LCV does not exists then it creates it. Otherwise it gets it from the variable table.

public override void Compile()

Execute()

Evaluate the from, to and step (as they could be variables). Update the LCV value.

public override void Execute()

Exceptions

StoredProgramException

Thrown if problem with expression.