OR-1 dataflow CPU sketch
1#ifndef NODE_TREE_SITTER_LOGGER_H_
2#define NODE_TREE_SITTER_LOGGER_H_
3
4#include "tree_sitter/api.h"
5
6#include <napi.h>
7
8namespace node_tree_sitter {
9
10class Logger final {
11 public:
12 static TSLogger Make(const Napi::Function &);
13 Napi::FunctionReference func;
14 static void Log(void *, TSLogType, const char *);
15};
16
17} // namespace node_tree_sitter
18
19#endif // NODE_TREE_SITTER_LOGGER_H_