blob: 9edf23c5521ae9c400314dba78d18cd3c0f175de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#pragma once
#include "tokenizer.hpp"
class SyntaxTree {
protected:
const SyntaxTree *left {};
const SyntaxTree *right {};
public:
SyntaxTree(SyntaxTree *left = nullptr, SyntaxTree *right = nullptr);
virtual ~SyntaxTree();
virtual float eval() const = 0;
};
|