relational operators added

This commit is contained in:
2021-07-08 07:43:10 +02:00
parent 199a5f9e12
commit e44b72ce53
4 changed files with 38 additions and 15 deletions

View File

@@ -91,19 +91,26 @@ struct DatabaseValueNode : Node {
DatabaseValueNode(std::string name) : Node(NodeType::database_value), col_name(name) {}
};
enum class LogicalOperatorType {
and_operator,
or_operator,
not_operator
};
struct LogicalOperatorNode : Node {
// and_operator,
// or_operator,
// not_operator,
// and / or / not
LogicalOperatorType op;
std::unique_ptr<Node> left;
std::unique_ptr<Node> right;
};
enum class RelationalOperatorType {
equal,
greater
// =, !=, >, >=, <, <=, like
greater,
greater_equal,
lesser,
lesser_equal,
not_equal
// like
};
struct RelationalOperatorNode : Node {