|
amath
1.8.5
Simple command line calculator
|
#include <evaluator.h>

Public Member Functions | |
| Evaluator (const char *input) | |
| ~Evaluator () | |
| void | Evaluate () const |
| char * | GetResult () const |
Private Attributes | |
| const char * | input |
| CharBuffer * | output |
Definition at line 35 of file evaluator.h.
|
explicit |
Definition at line 36 of file evaluator.cpp.
References CharBuffer::CharBuffer(), input, and output.
Referenced by StandardProgram::Start().


| Evaluator::~Evaluator | ( | ) |
| void Evaluator::Evaluate | ( | ) | const |
Definition at line 50 of file evaluator.cpp.
References CharBuffer::ClearAndCopy(), CharBuffer::ClearBuffer(), SyntaxNode::Execute(), Optimizer::GetRoot(), input, Optimizer::Optimize(), Optimizer::Optimizer(), output, Parser::Parse(), and Parser::Parser().
Referenced by StandardProgram::Start().


| char * Evaluator::GetResult | ( | ) | const |
Definition at line 91 of file evaluator.cpp.
References CharBuffer::GetString(), and output.
Referenced by StandardProgram::Start().


|
private |
Definition at line 44 of file evaluator.h.
Referenced by Evaluate(), and Evaluator().
|
private |
Definition at line 45 of file evaluator.h.
Referenced by Evaluate(), Evaluator(), GetResult(), and ~Evaluator().