Make sure conflicts returned by compile are unique

This commit is contained in:
Max Brunsfeld 2014-04-10 08:38:14 -07:00
parent 53285f7d0c
commit e1e0cc6278
7 changed files with 23 additions and 11 deletions

View file

@ -35,6 +35,7 @@ namespace tree_sitter {
Conflict(std::string description);
std::string description;
bool operator==(const Conflict &other) const;
bool operator<(const Conflict &other) const;
};
std::ostream& operator<<(std::ostream &stream, const Grammar &grammar);