tree-sitter/test/helpers/tree_helpers.h

17 lines
516 B
C
Raw Normal View History

2014-06-08 16:31:45 -07:00
#ifndef HELPERS_TREE_HELPERS_H_
#define HELPERS_TREE_HELPERS_H_
#include "runtime/tree.h"
#include <vector>
2015-05-25 20:44:23 -07:00
#include <string>
extern const char *symbol_names[24];
Tree ** tree_array(std::vector<Tree *> trees);
2014-06-08 16:31:45 -07:00
std::ostream &operator<<(std::ostream &stream, const Tree *tree);
std::ostream &operator<<(std::ostream &stream, const TSNode &node);
bool operator==(const TSNode &left, const TSNode &right);
bool operator==(const std::vector<Tree *> &right, const TreeArray &array);
2015-05-25 20:44:23 -07:00
2014-07-17 23:29:11 -07:00
#endif // HELPERS_TREE_HELPERS_H_