#include "spec_helper.h" namespace tree_sitter { namespace lr { template std::ostream & stream_map_of_sets(std::ostream &stream, const unordered_map> &map) { stream << string("{"); bool started = false; for (auto pair : map) { if (started) stream << string(", "); stream << pair.first; stream << string(" => ["); bool started_set = false; for (TValue action : pair.second) { if (started_set) stream << ", "; stream << action; started_set = true; } stream << string("]}"); started = true; } return stream; } std::ostream& operator<<(std::ostream &stream, const unordered_map> &map) { return stream_map_of_sets(stream, map); } std::ostream& operator<<(std::ostream &stream, const unordered_map> &map) { return stream_map_of_sets(stream, map); } } } string src_dir() { return string(getenv("TREESITTER_SRC_DIR")); }