diff options
Diffstat (limited to 'src/include/syntax_tree.hpp')
-rw-r--r-- | src/include/syntax_tree.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/syntax_tree.hpp b/src/include/syntax_tree.hpp new file mode 100644 index 0000000..9edf23c --- /dev/null +++ b/src/include/syntax_tree.hpp @@ -0,0 +1,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; +}; |