2014-06-08 16:31:45 -07:00
|
|
|
#ifndef HELPERS_TREE_HELPERS_H_
|
|
|
|
|
#define HELPERS_TREE_HELPERS_H_
|
|
|
|
|
|
2014-09-02 22:17:04 -07:00
|
|
|
#include "runtime/tree.h"
|
2014-06-03 13:19:49 -07:00
|
|
|
#include <vector>
|
2015-05-25 20:44:23 -07:00
|
|
|
#include <string>
|
2014-06-03 13:19:49 -07:00
|
|
|
|
2016-02-23 00:08:20 -08:00
|
|
|
extern const char *symbol_names[24];
|
2014-06-28 18:45:22 -07:00
|
|
|
TSTree ** tree_array(std::vector<TSTree *> trees);
|
2014-06-08 16:31:45 -07:00
|
|
|
|
2015-06-03 09:44:13 -07:00
|
|
|
std::ostream &operator<<(std::ostream &stream, const TSTree *tree);
|
2015-12-02 07:53:15 -08:00
|
|
|
std::ostream &operator<<(std::ostream &stream, const TSNode &node);
|
|
|
|
|
std::ostream &operator<<(std::ostream &stream, const TSLength &length);
|
2015-09-18 23:20:06 -07:00
|
|
|
bool operator==(const TSNode &left, const TSNode &right);
|
2016-02-22 09:23:25 -08:00
|
|
|
bool operator==(const std::vector<TSTree *> &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_
|