JetCore/Expression.cpp
2024-08-01 16:17:57 -07:00

34 lines
733 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;
string = op1.string;
std::cout << "Leaving expression string: " << string << std::endl;
std::cout << "Unparsed: [" << in.unparsed() << "]" << std::endl;
}
Expression::~Expression() {}
bool Expression::getBooleanResult() {
return boolean;
}
double Expression::getNumericResult() {
return 0;
}
coreutils::ZString Expression::getStringResult() {
return coreutils::ZString();
}
}