Allow the parser to print dot graphs to any file

This commit is contained in:
Max Brunsfeld 2018-05-11 12:43:04 -07:00
parent e75ecd1bb1
commit 199a94cc26
7 changed files with 29 additions and 29 deletions

View file

@ -27,7 +27,7 @@ describe("Parser", [&]() {
tree = nullptr;
parser = ts_parser_new();
if (getenv("TREE_SITTER_ENABLE_DEBUG_GRAPHS")) {
ts_parser_print_debugging_graphs(parser, true);
ts_parser_print_dot_graphs(parser, stderr);
}
});