Calculator
Extensible stack-based calculator primarily in library form
Calculator::Error Namespace Reference

Error / Return values of Stack Operations to ensure consistency. More...

Variables

const std::string Ok = "Ok"
 Operation was successful. More...
 
const std::string StackUnderflow = "Insufficient Stack Arguments"
 Operation required more items than the Stack had available. More...
 
const std::string VariableNotSet = "Variable is not set"
 Operation required a variable. More...
 
const std::string VariableReferencesSelf = "Variable references itself and has no value"
 Variable dereferences to itself directly or indirectly and cannot be read. More...
 

Detailed Description

Error / Return values of Stack Operations to ensure consistency.

Variable Documentation

◆ Ok

const std::string Calculator::Error::Ok = "Ok"

Operation was successful.

Definition at line 23 of file Error.h.

◆ StackUnderflow

const std::string Calculator::Error::StackUnderflow = "Insufficient Stack Arguments"

Operation required more items than the Stack had available.

Definition at line 26 of file Error.h.

◆ VariableNotSet

const std::string Calculator::Error::VariableNotSet = "Variable is not set"

Operation required a variable.

Variable has not been set.

Definition at line 29 of file Error.h.

◆ VariableReferencesSelf

const std::string Calculator::Error::VariableReferencesSelf = "Variable references itself and has no value"

Variable dereferences to itself directly or indirectly and cannot be read.

Definition at line 32 of file Error.h.