30 lines
555 B
C++
30 lines
555 B
C++
#include "Expression.h"
|
|
#include "Operand.h"
|
|
#include <iostream>
|
|
|
|
namespace jet {
|
|
|
|
Expression::Expression(coreutils::ZString &in) : MString() {
|
|
std::cout << "Expression construction:" << in << std::endl;
|
|
|
|
Operand op1(in);
|
|
|
|
boolean = op1.boolean;
|
|
}
|
|
|
|
Expression::~Expression() {}
|
|
|
|
bool Expression::getBooleanResult() {
|
|
return boolean;
|
|
}
|
|
|
|
double Expression::getNumericResult() {
|
|
return 0;
|
|
}
|
|
|
|
coreutils::ZString Expression::getStringResult() {
|
|
return coreutils::ZString();
|
|
}
|
|
|
|
}
|