diff --git a/src/compiler/rules/rule.cc b/src/compiler/rules/rule.cc index 14daa6b5..9a6a7e02 100644 --- a/src/compiler/rules/rule.cc +++ b/src/compiler/rules/rule.cc @@ -21,5 +21,7 @@ namespace tree_sitter { stream << string("#"); return stream; } + + Rule::~Rule() {} } } diff --git a/src/compiler/rules/rule.h b/src/compiler/rules/rule.h index 5cc64203..132aa71a 100644 --- a/src/compiler/rules/rule.h +++ b/src/compiler/rules/rule.h @@ -19,6 +19,7 @@ namespace tree_sitter { virtual rule_ptr copy() const = 0; virtual std::string to_string() const = 0; virtual void accept(Visitor *visitor) const = 0; + virtual ~Rule(); }; std::ostream& operator<<(std::ostream& stream, const Rule &rule);