#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; };