more unknown work

This commit is contained in:
Brad Arant 2024-02-14 13:37:42 -08:00
parent d915714b4d
commit 31cca91873
2 changed files with 39 additions and 0 deletions

22
Expression.cpp Normal file
View File

@ -0,0 +1,22 @@
#include "Expression.h"
#include <iostream>
namespace jet {
Expression::Expression(coreutils::ZString &expression) : MString("zzz") {
std::cout << "Expression construction:" << expression << std::endl;
// if(expression.equals("true"))
// MString("true");
// else if(expression.equals("false"))
// MString("false");
// else if(expression.equals(""))
// MString("false");
// else
// MString("true");
}
Expression::~Expression() {
std::cout << "Expression destruction:" << getLength() << std::endl;
}
}

17
Expression.h Normal file
View File

@ -0,0 +1,17 @@
#ifndef __Expression_h__
#define __expression_h__
#include "MString.h"
namespace jet {
class Expression : public coreutils::MString {
public:
Expression(coreutils::ZString &expression);
virtual ~Expression();
};
}
#endif