Move stream operator definitions to spec helpers

This is one less thing for users to worry about when compiling and linking
the library itself
This commit is contained in:
Max Brunsfeld 2015-09-10 10:12:03 -07:00
parent f5f24a708e
commit e6f3239bef
17 changed files with 147 additions and 134 deletions

View file

@ -50,8 +50,6 @@ class ParseAction {
int production_id;
};
std::ostream &operator<<(std::ostream &stream, const ParseAction &item);
} // namespace tree_sitter
namespace std {
@ -79,8 +77,6 @@ class ParseState {
LexStateId lex_state_id;
};
std::ostream &operator<<(std::ostream &stream, const ParseState &state);
class ParseTable {
public:
ParseStateId add_state();