Files
Upsilon/expression_node.h

15 lines
421 B
C++

#ifndef EXPRESSION_NODE_H
#define EXPRESSION_NODE_H
#include "tree_node.h"
class ExpressionNode : public TreeNode {
public:
static TreeNode * staticFailedAllocationStaticNode();
TreeNode * failedAllocationStaticNode() override { return staticFailedAllocationStaticNode(); }
virtual float approximate() = 0;
ExpressionNode * child(int i) { return static_cast<ExpressionNode *>(childTreeAtIndex(i)); }
};
#endif