Table of Contents

Class Int

Namespace
BOOSE
Assembly
BOOSE.dll

Command Class to define and store integer values.

public sealed class Int : Evaluation, ICommand
Inheritance
Int
Implements
Inherited Members

Constructors

Int()

Contructor

public Int()

Methods

Compile()

If this is a variable declartation set its value and add it to the variable table in the StoredProgram. If it is an expression then nothing happens as it already exists in the variable table (that is handled within StoredProgram).

public override void Compile()

Execute()

Base calculates a string evaluated expression. Now see if it's an integer value. Determines if a cast is needed for a real value.

public override void Execute()

Exceptions

StoredProgramException

Throws an exception is it can't parse an integer or if there is an attempt to parse a real value which requires a boose cast to force it.