interpreter_tree first iteration

This commit is contained in:
ProgramSnail 2023-03-26 15:20:53 +03:00
parent 7f4cd5ee9a
commit 1ba132bb06
15 changed files with 1829 additions and 1 deletions

16
include/visitor.hpp Normal file
View file

@ -0,0 +1,16 @@
#pragma once
// for clangd
#include "interpreter_tree.hpp"
namespace interpreter {
class Visitor {
public:
virtual void Visit(Node* node) = 0; // ??
// visit(SomethingNode node)
// ...
private:
};
} // namespace interpreter